aboutsummaryrefslogtreecommitdiff
blob: b920de32b3930d842df15050ee2e10e4c87383b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PN = build-docbook-catalog
PV = $(shell awk '/^\# .Header:/{print $$4;exit}' build-docbook-catalog)
P = $(PN)-$(PV)

all:

EPREFIX =
SYSCONFDIR = $(EPREFIX)/etc
CONFDIR = $(SYSCONFDIR)/xml
PREFIX = $(EPREFIX)/usr
SBINDIR = $(PREFIX)/sbin

install:
	install -d $(DESTDIR)$(SBINDIR)
	install -m 755 build-docbook-catalog $(DESTDIR)$(SBINDIR)

dist:
	rm -rf $(P)
	mkdir -p $(P)
	cp -pPR build-docbook-catalog Makefile README $(P)/
	tar --posix --owner 0 --group 0 -cf - $(P) | xz -9 > $(P).tar.xz
	rm -rf $(P)

.PHONY: all clean dist install