X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=Makefile;h=caf10e3daf15bdb421f14dba85d0536f7948c48e;hp=9eba2a037ea5613c622b7563800645252c8baa96;hb=a97500609dc3c1b11f9786d32bc458eb00de4c36;hpb=200be285168841fae7b0ef421b9db3168670263b diff --git a/Makefile b/Makefile index 9eba2a0..caf10e3 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Use this file with make to compile and install Yoink. # # This makefile supports these targets: -# all, install, clean, cleandist, run, debug +# all, install, clean, distclean, run, debug, dist, dist-gzip, dist-bzip2 # # This build system incorporates the ideas written by Emile van Bergen: # http://www.xs4all.nl/~evbergen/nonrecursive-make.html @@ -24,8 +24,7 @@ have_config := $(wildcard config.mk) ifneq ($(strip $(have_config)),) include config.mk else -no_config: - $(error You must run the configure script before you can make anything) +$(error You must run the configure script before you can make anything) endif @@ -188,6 +187,17 @@ uninstall: $(call remove_silencer,$(call DO_RM,$(DESTDIR)$(datadir)$$base)); \ done +.PHONY: dist-bzip2 +dist-bzip2: + $(SHELL_LINE_PREFIX)git archive HEAD --prefix='$(TARNAME)/' | bzip2 > "$(TARNAME).tar.bz2" + +.PHONY: dist-gzip +dist-gzip: + $(SHELL_LINE_PREFIX)git archive HEAD --prefix='$(TARNAME)/' | gzip > "$(TARNAME).tar.gz" + +.PHONY: dist +dist: dist-bzip2 + # # Prevent make from removing any build targets.