aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-27 22:36:21 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-27 22:36:21 +0000
commitb1b9ab11850593df003e116abfb990cd5a723891 (patch)
tree84938dac66f9e3082b71394491777adc5dd68543 /Makefile
parentadd -h/--help options (diff)
downloadbuild-docbook-catalog-b1b9ab11850593df003e116abfb990cd5a723891.tar.gz
build-docbook-catalog-b1b9ab11850593df003e116abfb990cd5a723891.tar.bz2
build-docbook-catalog-b1b9ab11850593df003e116abfb990cd5a723891.zip
add a makefile to simplify build/install steps
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c33b7cd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+PN = build-docbook-catalog
+PV = $(shell awk '/^\# .Header:/{print $$4;exit}' build-docbook-catalog)
+P = $(PN)-$(PV)
+
+all:
+
+SYSCONFDIR = /etc
+CONFDIR = $(SYSCONFDIR)/xml
+PREFIX = /usr
+SBINDIR = $(PREFIX)/sbin
+
+install:
+ mkdir -p $(DESTDIR)$(CONFDIR) $(DESTDIR)$(SBINDIR)
+ touch $(DESTDIR)$(CONFDIR)/.keep
+ install -m 755 build-docbook-catalog $(DESTDIR)$(SBINDIR)
+
+dist:
+ rm -rf $(P)
+ mkdir -p $(P)
+ cp -pPR build-docbook-catalog Makefile README $(P)/
+ tar cf - $(P) | xz -9 > $(P).tar.xz
+ rm -rf $(P)
+
+.PHONY: all clean dist install