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