aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-06-01 18:57:42 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-06-01 18:57:42 -0400
commite090cc2c2db77d16123a6b1c3b900fbf6ea224ff (patch)
tree3f0d9d3dca5beb4ca8cc1d0395f6b14c7a365f63
parentef4438babb818d7ade3631d3fa881e5480ee2ca0 (diff)
added make dist
-rw-r--r--.gitignore1
-rw-r--r--Makefile10
2 files changed, 11 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 5786794..2223198 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
minimun
+minimun.tar.gz
diff --git a/Makefile b/Makefile
index 65f55de..a384f98 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
.POSIX:
DESTDIR=/home/minimun/minimun
+VER=1.0
minimun: minimun.orig
sed 's:%%DEST%%:$(DESTDIR):' minimun.orig > minimun
@@ -16,5 +17,14 @@ uninstall:
rm $(DESTDIR)/{minimun,format.tex,logo.png}
rmdir -p $(DESTDIR)
+SRC = format.tex LICENCE logo.png Makefile minimun.ini minimun.orig\
+nginx.example.conf README www
+dist: minimun.tar.gz
+minimun.tar.gz: $(SRC)
+ mkdir minimun-$(VER)
+ cp -r -t minimun-$(VER) $(SRC)
+ tar -czf minimun.tar.gz minimun-$(VER)
+ rm -rf minimun-$(VER)
+
$(DESTDIR):
mkdir -p $@