about summary refs log tree commit diff
path: root/system.mk
blob: 9a56c9df2902fa7df008501343f22c2e78aaa1ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PREFIX ?= /usr/local
SHAREDIR ?= ${PREFIX}/share
EXMANDIR ?= ${SHAREDIR}/exman

CURL ?= curl
TAR ?= tar
ALLOW_FAILURE ?= false

all: ${DISTFILES}

.PRECIOUS: ${DISTFILES}

${DISTFILES}:
	${CURL} -LO ${MIRROR}/${.TARGET}

clean:
	rm -f ${DISTFILES}

install: ${DISTFILES}
	install -d ${EXMANDIR}/${SYSTEM}
.for distfile in ${DISTFILES}
	${TAR} -x -f ${distfile} -C ${EXMANDIR}/${SYSTEM} \
		--strip-components=${STRIP} '${FILES}' || ${ALLOW_FAILURE}
.endfor

uninstall:
	rm -fr ${EXMANDIR}/${SYSTEM}