# HG changeset patch # User Oleksandr Gavenko # Date 1531322746 -10800 # Node ID 87a79ec44985ad66aba69eb42455f7ed37965222 # Parent e4c0baf3fbb8505245121e14d1faa4bac4fd5b39 Target to create tarball with essential files (to be moved to Vagrant box). diff -r e4c0baf3fbb8 -r 87a79ec44985 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