summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..63522ac
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+.PHONY: clean name version name fullname release dist dist-bzip2
+all: output/entrouvert-archive.gpg
+
+NAME = entrouvert-archive
+VERSION=`git describe | sed 's/^debian\///' `
+
+DIST_FILES = \
+ keys \
+ jessie \
+ stretch
+
+output/entrouvert-archive.gpg: keys/0x*
+ cat keys/0x* > output/entrouvert-archive.gpg
+
+clean:
+ rm -rf sdist
+ rm -rf output/*
+
+release:
+ gbp dch --release --commit
+ gbp buildpackage --git-tag
+
+dist: clean
+ -mkdir sdist
+ rm -rf sdist/$(NAME)-$(VERSION)
+ mkdir -p sdist/$(NAME)-$(VERSION)
+ for i in $(DIST_FILES); do \
+ cp -R "$$i" sdist/$(NAME)-$(VERSION); \
+ done
+
+dist-bzip2: dist
+ cd sdist && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
+
+version:
+ @(echo $(VERSION))
+
+name:
+ @(echo $(NAME))
+
+fullname:
+ @(echo $(NAME)-$(VERSION))