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