diff options
| author | Hawarth <hawarth@hawarth.com> | 2026-03-20 18:28:01 +0100 |
|---|---|---|
| committer | Hawarth <hawarth@hawarth.com> | 2026-03-20 18:28:01 +0100 |
| commit | 0e0cab6b0833d8917efd0f2c3a2676af5779161b (patch) | |
| tree | be3e1d7caf6029e34b4eef478127f7bea2b0f9cd /Makefile | |
| parent | 9b112d95c52c66d09ae30fd21076ba9f0c2350d1 (diff) | |
| download | df-lumberborne-0e0cab6b0833d8917efd0f2c3a2676af5779161b.tar.gz df-lumberborne-0e0cab6b0833d8917efd0f2c3a2676af5779161b.zip | |
chore: add basic Makefile
Adds a basic Makefile that lets us package the mod into a directory ready
to be loaded into Dwarf Fortress with the install recipe.
Also lets us create a zip and tarball and has a clean recipe to remove
files generated by the Makefile.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aad81ba --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +NAME = lumberborne +VERSION = 1.0.0 + +all: package zip tarball + +package: + mkdir -p $(NAME)_v$(VERSION)/ + cp -r info.txt scripts/ $(NAME)_v$(VERSION)/ + +zip: package + 7za a $(NAME)_v$(VERSION).zip $(NAME)_v$(VERSION)/ + +tarball: package + tar czf $(NAME)_v$(VERSION).tar.gz $(NAME)_v$(VERSION)/ + +install: package + rm -rf /home/hawarth/.local/share/Bay\ 12\ Games/Dwarf\ Fortress/mods/$(NAME)_v$(VERSION)/ + mv $(NAME)_v$(VERSION)/ /home/hawarth/.local/share/Bay\ 12\ Games/Dwarf\ Fortress/mods/ + +clean: + rm -rf $(NAME)_v$(VERSION)/ $(NAME)_v$(VERSION).zip $(NAME)_v$(VERSION).tar.gz |
