summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-12-23 11:05:33 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-12-23 11:05:59 (GMT)
commit7f7cdcbf8e48f6cfedd17e9111682d7cbe71ae39 (patch)
treebc6e1be37c48835d940ba9282bce8ead42435bb9
parent79487c96f1832010199e7beb6562429ab51c7cf2 (diff)
downloadpublik-client-scripts-7f7cdcbf8e48f6cfedd17e9111682d7cbe71ae39.zip
publik-client-scripts-7f7cdcbf8e48f6cfedd17e9111682d7cbe71ae39.tar.gz
publik-client-scripts-7f7cdcbf8e48f6cfedd17e9111682d7cbe71ae39.tar.bz2
makefile: add dist target
-rw-r--r--.gitignore1
-rw-r--r--Makefile15
2 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 227743a..73ade75 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
debian/.debhelper/
debian/*.debhelper.log
debian/publik-strasbourg-scripts/
+sdist
diff --git a/Makefile b/Makefile
index 95021a1..1941959 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,21 @@ install:
mkdir -p $(DESTDIR)$(prefix)/lib/publik/
cp -r clients $(DESTDIR)$(prefix)/lib/publik/
+DIST_FILES = \
+ Makefile \
+ clients
+
+clean:
+ rm -rf sdist
+
+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
-mkdir sdist
cd sdist && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)