aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze2026-10-16 12:31:19 -0400
committerJakob L. Kreuze2026-10-16 12:31:19 -0400
commit00b5b3541c3b960b7a2f5ff69b5cc7e9a4582496 (patch)
tree2a87f42e4007635e7884d94132518aff8868cae0
parent14e050b058ba77f1a51a767772806da2e5d71bf0 (diff)
No more build system (for now)
-rw-r--r--.gitignore1
-rw-r--r--Makefile19
-rw-r--r--README.md5
-rw-r--r--deck-editor.html (renamed from deck-editor.html.tpl)8
-rw-r--r--srs-anywhere.css (renamed from style.css)0
-rw-r--r--srs-anywhere.html (renamed from srs-anywhere.html.tpl)14
6 files changed, 5 insertions, 42 deletions
diff --git a/.gitignore b/.gitignore
index 2d19fc7..e69de29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +0,0 @@
-*.html
diff --git a/Makefile b/Makefile
deleted file mode 100644
index b02bd6b..0000000
--- a/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-all: srs-anywhere.html deck-editor.html
-
-srs-anywhere.html: srs-anywhere.html.tpl style.css srs-anywhere.js srs-anywhere-network.js
- sed '/@@JS1@@/r srs-anywhere.js' < srs-anywhere.html.tpl | \
- sed '/@@JS1@@/d' | \
- sed '/@@JS2@@/r srs-anywhere-network.js' | \
- sed '/@@JS2@@/d' | \
- sed '/@@CSS@@/r style.css' | \
- sed '/@@CSS@@/d' > srs-anywhere.html
-
-deck-editor.html: deck-editor.html.tpl style.css deck-editor.js
- sed '/@@JS@@/r deck-editor.js' < deck-editor.html.tpl | \
- sed '/@@JS@@/d' | \
- sed '/@@CSS@@/r style.css' | \
- sed '/@@CSS@@/d' > deck-editor.html
-
-.PHONY: all clean
-clean:
- rm *.html
diff --git a/README.md b/README.md
index 41b6c58..16e61d4 100644
--- a/README.md
+++ b/README.md
@@ -11,11 +11,6 @@ SRS Anywhere is free software: you can redistribute it and/or modify it under th
SRS Anywhere is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with SRS Anywhere. If not, see <https://www.gnu.org/licenses/.>.
-## Building
-
-Just run `make`.
-The build process is very simple, it just tangles the CSS and JavaScript code into an HTML template using `sed`.
-
## Usage
Open `srs-anywhere.html` in a web browser and press the "Browse..." button in the top right-hand corner to load a deck of cards.
diff --git a/deck-editor.html.tpl b/deck-editor.html
index 1f778d3..c9966fb 100644
--- a/deck-editor.html.tpl
+++ b/deck-editor.html
@@ -3,9 +3,7 @@
<head>
<meta charset="UTF-8">
<title>SRS Anywhere Card Editor</title>
- <style>
- @@CSS@@
- </style>
+ <link rel="stylesheet" href="srs-anywhere.css">
</head>
<body>
<div class="status-section">
@@ -14,8 +12,6 @@
</div>
<h1>SRS Anywhere Card Editor</h1>
<div id="table-container"></div>
- <script>
- @@JS@@
- </script>
+ <script src="deck-editor.js"></script>
</body>
</html>
diff --git a/style.css b/srs-anywhere.css
index bcef4fb..bcef4fb 100644
--- a/style.css
+++ b/srs-anywhere.css
diff --git a/srs-anywhere.html.tpl b/srs-anywhere.html
index 0b2573c..3897063 100644
--- a/srs-anywhere.html.tpl
+++ b/srs-anywhere.html
@@ -4,9 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SRS Anywhere</title>
- <style>
- @@CSS@@
- </style>
+ <link rel="stylesheet" href="srs-anywhere.css">
<link rel="icon" href="srs-anywhere.ico">
</head>
<body style="display: flex;">
@@ -20,8 +18,6 @@
No cards loaded!
</div>
<hr>
- <input type="text" id="network-password" /> <button id="open-network">Go!</button>
- <br>
<input type="file" id="cards-input" accept=".json" />
<button id="open-modal">?</button>
<br />
@@ -78,12 +74,8 @@
</div>
</div>
- <script>
- @@JS1@@
- </script>
- <script>
- @@JS2@@
- </script>
+ <script src="srs-anywhere.js"></script>
+ <script src="srs-anywhere-network.js"></script>
<script src="srs-anywhere-custom-card-types.js"></script>
</body>
</html>

© 2015 - 2026 Jakob L. Kreuze