1 PACKAGE_VERSION = `/bin/fgrep GK_V= genkernel | sed "s/.*GK_V='\([^']\+\)'/\1/"`
2 distdir = genkernel-$(PACKAGE_VERSION)
4 # Add off-Git/generated files here that need to be shipped with releases
5 EXTRA_DIST = genkernel.8 ChangeLog
7 genkernel.8: doc/genkernel.8.txt doc/asciidoc.conf Makefile genkernel
8 a2x --conf-file=doc/asciidoc.conf --attribute="genkernelversion=$(PACKAGE_VERSION)" \
9 --format=manpage -D . "$<"
18 git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; }
19 git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; }
21 dist: check-git-repository $(EXTRA_DIST)
22 rm -Rf "$(distdir)" "$(distdir)".tar "$(distdir)".tar.bz2
24 git ls-files -z | xargs -0 cp --no-dereference --parents --target-directory="$(distdir)" \
26 tar cf "$(distdir)".tar "$(distdir)"
27 bzip2 -9v "$(distdir)".tar
30 .PHONY: clean check-git-repository dist