[game-data-packager] 04/08: add tyrian.mk

Simon McVittie smcv at debian.org
Mon Dec 29 10:47:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 379af7c1b0fecd9e7bd10b78c28313fcc477b76f
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Mon Dec 29 08:33:13 2014 +0100

    add tyrian.mk
---
 tyrian.mk | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/tyrian.mk b/tyrian.mk
new file mode 100644
index 0000000..30907f3
--- /dev/null
+++ b/tyrian.mk
@@ -0,0 +1,34 @@
+BASICFILES = usr/share/doc/tyrian-data/README.Debian \
+usr/share/doc/tyrian-data/copyright
+DESTFILES = $(addprefix build/tyrian-data/, $(BASICFILES))
+
+# VERSION is defined by the parent make
+out/tyrian-data_$(VERSION)_all.deb: build/tyrian-data/DEBIAN/control $(DESTFILES)
+		fakeroot dpkg-deb -b build/tyrian-data $@
+
+DIRS = build/tyrian-data \
+build/tyrian-data/DEBIAN \
+build/tyrian-data/usr \
+build/tyrian-data/usr/share \
+build/tyrian-data/usr/share/games \
+build/tyrian-data/usr/share/games/tyrian \
+build/tyrian-data/usr/share/doc \
+build/tyrian-data/usr/share/doc/tyrian-data
+
+$(DIRS):
+	mkdir $@
+
+$(DESTFILES): $(DIRS)
+	cp -p tyrian-data/`basename "$@"` $@
+
+build/tyrian-data/DEBIAN/control: tyrian-data/control.in $(DIRS)
+	m4 -DPACKAGE=tyrian-data -DVERSION=$(VERSION) $< > $@ 
+
+clean:
+	rm -f build/tyrian-data/DEBIAN/control out/tyrian-data_$(VERSION)_all.deb \
+		build/tyrian-data/usr/share/doc/tyrian-data/copyright \
+		build/tyrian-data/usr/share/doc/tyrian-data/README.Debian
+	for d in $(DIRS); do echo "$$d"; done | sort -r | while read d; do \
+		[ ! -d "$$d" ] || rmdir "$$d"; done
+
+.PHONY: clean $(DESTFILES)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list