summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChristophe Siraut <csiraut@entrouvert.com>2018-07-10 14:39:39 (GMT)
committerChristophe Siraut <csiraut@entrouvert.com>2018-07-13 09:12:50 (GMT)
commitd2df75a4161549624b6a7143267f35cd85692403 (patch)
treedafc1df44bf8bb9d93b76e5b2d7f4baa15c9e5e1 /Makefile
downloadentrouvert-archive-d2df75a4161549624b6a7143267f35cd85692403.zip
entrouvert-archive-d2df75a4161549624b6a7143267f35cd85692403.tar.gz
entrouvert-archive-d2df75a4161549624b6a7143267f35cd85692403.tar.bz2
initial release0.1
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))