diff options
author | Colin Walters <walters@verbum.org> | 2013-07-25 09:09:19 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2013-09-06 10:12:52 -0400 |
commit | 6cf0c4ceb89e68db4478d74c21d172b3e65e8d2b (patch) | |
tree | 487cc90e08b58645c10c83f714b8b5cb44c16e44 /Makefile | |
parent | 28228abc547bc9eb1ce27964188056b1bd1012e8 (diff) | |
download | git-bz-6cf0c4ceb89e68db4478d74c21d172b3e65e8d2b.tar.gz |
Add a simple build system implementing GNOME Build API
See http://people.gnome.org/~walters/docs/build-api.txt
This way I can easily add it to the gnome-ostree manifest and have it
install into /usr, package people can do their thing, etc.
This dead simple non-autotools configure/Makefile system is adapted
from one I wrote for gtk-doc-stub.
Note I also added a --disable-documentation flag since gnome-ostree
doesn't have asciidoc.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,4 +1,12 @@ -all: git-bz.html git-bz.1 +include Makefile.inc + +ifeq ($(enable_documentation),yes) +docs = git-bz.html git-bz.1 +else +docs = +endif + +all: $(docs) %.xml: %.txt asciidoc -f asciidoc.conf -d manpage -b docbook $< @@ -16,3 +24,13 @@ upload-html: git-bz.html clean: rm -f git-bz.xml git-bz.html git-bz.1 + +install: install-bin $(if $(findstring yes,$(enable_documentation)),install-doc) + +install-bin: + mkdir -p $(DESTDIR)$(bindir) + install -m 0755 $(srcdir)/git-bz $(DESTDIR)$(bindir) + +install-doc: + mkdir -p $(DESTDIR)$(mandir)/man1 + install -m 0644 git-bz.1 $(DESTDIR)$(mandir)/man1 |