From 0e0cab6b0833d8917efd0f2c3a2676af5779161b Mon Sep 17 00:00:00 2001 From: Hawarth Date: Fri, 20 Mar 2026 18:28:01 +0100 Subject: 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. --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile 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 -- cgit v1.2.3