Target to create tarball with essential files (to be moved to Vagrant box).
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 11 Jul 2018 18:25:46 +0300
changeset 904 87a79ec44985
parent 903 e4c0baf3fbb8
child 905 90d1d342a896
Target to create tarball with essential files (to be moved to Vagrant box).
Makefile
--- a/Makefile	Mon Jul 09 01:33:08 2018 +0300
+++ b/Makefile	Wed Jul 11 18:25:46 2018 +0300
@@ -70,12 +70,26 @@
 RST_FILES = $(wildcard *.rst)
 HTML_FILES = $(RST_FILES:.rst=.html)
 
+TARBALL := skel.tar.gz
+
 ################################################################
 # Build targets.
 
 .PHONY: all
 all:
 
+.PHONY: dist
+dist: $(TARBALL)
+
+define TARBALL_DEPS
+.bashrc .env .bash_completion \
+.inputrc .dircolors \
+.gitconfig .gitignore .hgrc .hgignore .hgstyle
+endef
+
+$(TARBALL): $(TARBALL_DEPS)
+	tar zcf $(TARBALL) $(TARBALL_DEPS)
+
 ################################################################
 # Install/uninstall targets.
 
@@ -192,7 +206,7 @@
 
 .PHONY: clean
 clean:
-	rm -f $(HTML_FILES)
+	rm -f $(HTML_FILES) $(TARBALL)
 
 .PHONY: distclean
 distclean: clean