diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2011-06-24 18:58:46 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2011-06-24 19:10:42 +0200 |
commit | fa940f755fbe539ffdeed748df7f1e31d9427f72 (patch) | |
tree | e65b4b212d120227f8f968c59c7e3dd6eb1aab0b /Makefile | |
parent | There is no dict conf_values.settings, replace by plain conf_values (diff) | |
download | catalyst-fa940f755fbe539ffdeed748df7f1e31d9427f72.tar.gz catalyst-fa940f755fbe539ffdeed748df7f1e31d9427f72.tar.bz2 catalyst-fa940f755fbe539ffdeed748df7f1e31d9427f72.zip |
Migrate man page to Asciidoc, generate list of subarches, add Makefile including "dist" target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..bcc40c7c --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org> +# Licensed under GPL v2 or later + +PACKAGE_VERSION = `fgrep '__version__=' catalyst | sed 's|^__version__="\(.*\)"$$|\1|'` +CLEAN_FILES = files/catalyst.1 doc/subarches.generated.txt +EXTRA_DIST = files/catalyst.1 + +distdir = catalyst-$(PACKAGE_VERSION) + + +all: files/catalyst.1 + +files/catalyst.1: doc/catalyst.1.txt doc/subarches.generated.txt doc/asciidoc.conf Makefile catalyst + a2x --conf-file=doc/asciidoc.conf --attribute="catalystversion=$(PACKAGE_VERSION)" \ + --format=manpage -D files "$<" + +doc/subarches.generated.txt: + ./doc/make_subarch_table_guidexml.py + +clean: + rm -f $(CLEAN_FILES) + find -name '*.pyo' -delete + +check-git-repository: + git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; } + git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; } + +dist: check-git-repository $(EXTRA_DIST) + rm -Rf "$(distdir)" "$(distdir)".tar "$(distdir)".tar.bz2 + mkdir "$(distdir)" + git ls-files -z | xargs -0 cp --no-dereference --parents --target-directory="$(distdir)" \ + $(EXTRA_DIST) + tar cf "$(distdir)".tar "$(distdir)" + bzip2 -9v "$(distdir)".tar + rm -Rf "$(distdir)" |