summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-10-13 20:48:25 +0200
committermetamuffin <metamuffin@disroot.org>2024-10-13 20:48:25 +0200
commit21a9b4087b6612383ee4beb16c2576a4eeb6b38f (patch)
treed296c0ec5dc8569ded563ba46e648b426f4bf9f1
parentc4aebdaddbb4806e98070a833f3608f18fc0a596 (diff)
downloadhurrycurry-21a9b4087b6612383ee4beb16c2576a4eeb6b38f.tar
hurrycurry-21a9b4087b6612383ee4beb16c2576a4eeb6b38f.tar.bz2
hurrycurry-21a9b4087b6612383ee4beb16c2576a4eeb6b38f.tar.zst
integrate book into build system
-rw-r--r--client/makefile15
-rw-r--r--makefile6
-rw-r--r--readme.md16
3 files changed, 25 insertions, 12 deletions
diff --git a/client/makefile b/client/makefile
index bfcbbff5..2c13b6c4 100644
--- a/client/makefile
+++ b/client/makefile
@@ -13,10 +13,12 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
+
+LOCALES = $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini))
+
.PHONY: assets clean all locales
-all: .godot/import-finished assets locales icons/adaptive-background.png icons/adaptive-foreground.png
-assets: menu/book/book_01.webp
-locales: $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini))
+all: .godot/import-finished locales icons/adaptive-background.png icons/adaptive-foreground.png
+locales: $(LOCALES)
LT = ../target/release/localetool
@@ -24,15 +26,10 @@ clean:
rm -f menu/book/book_*.webp
rm -f icons/adaptive-foreground.png icons/adaptive-background.png
-.godot/import-finished: assets locales
+.godot/import-finished: $(LOCALES)
godot --headless --import project.godot
touch $@
-menu/book/book_01.webp:
- @echo Downloading recipe book...
- @mkdir -p menu/book
- @curl -L https://s.metamuffin.org/static/hurrycurry/book.webp.tar.zst | tar -xC menu/book
-
$(LT): $(shell find ../locale/tools -type f)
{ cd ..; cargo $(CARGOFLAGS) build --release --bin localetool; }
diff --git a/makefile b/makefile
index 4c70a3b2..1ee543b3 100644
--- a/makefile
+++ b/makefile
@@ -13,8 +13,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
-.PHONY: all client pixel-client test-client server clean data
-all: data server client pixel-client test-client
+.PHONY: all client pixel-client test-client server clean data book
+all: data server client pixel-client test-client book
data:
make -C data all
@@ -26,6 +26,8 @@ pixel-client:
make -C pixel-client all
test-client:
make -C test-client all
+book:
+ make -C book all
clean:
make -C data clean
diff --git a/readme.md b/readme.md
index a340dcf1..ff994e61 100644
--- a/readme.md
+++ b/readme.md
@@ -57,6 +57,19 @@ make data server
similar). Running the server in the repository root should work.
- Run the server: `./target/release/hurrycurry-server`
+## Book
+
+### Building
+
+- Requirements:
+ - Python 3
+ - Deno (or Node.js in which case you need to pass `JSR=node` to make)
+ - Typst (only if PDF or image export is required)
+
+```
+make book
+```
+
## Pixel Client
### Building
@@ -93,7 +106,8 @@ make test-client
## Contributing
-For discussion regarding development, feel free to join our matrix room: [#hurrycurry:metamuffin.org](https://matrix.to/#/#hurrycurry:metamuffin.org).
+For discussion regarding development, feel free to join our matrix room:
+[#hurrycurry:metamuffin.org](https://matrix.to/#/#hurrycurry:metamuffin.org).
## License