-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
43 lines (32 loc) · 1.07 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id$
SCRIPTS= portshaker.sh
VERSION= 1.0.18
NO_MANCOMPRESS=
MAN5= portshaker.conf.5 portshaker.d.5
MAN8= portshaker.8
FILES= merge-updating.awk portshaker.conf.sample portshaker.subr
FILESDIR= ${SHAREDIR}/portshaker
FILESDIR_portshaker.conf.sample= ${ETCDIR}
DISTDIR= portshaker-${VERSION}
TARBALL= ${DISTDIR}.tar.gz
CLEANFILES+= portshaker.conf.5 portshaker.d.5 portshaker.8 \
portshaker.sh portshaker.subr ${TARBALL}
.SUFFIXES: .5.in .5 .8.in .8 .sh.in .sh .subr.in .subr
.5.in.5 .8.in.8 .sh.in.sh .subr.in.subr:
@echo " GEN ${.TARGET}"
@sed -e "s|@@PREFIX@@|${PREFIX}|" \
-e "s|@@ETCDIR@@|${ETCDIR}|" \
-e "s|@@SHAREDIR@@|${SHAREDIR}|" \
-e "s|@@VERSION@@|${VERSION}|" \
< ${.IMPSRC} \
> ${.TARGET}
beforeinstall:
if [ ! -d "${DESTDIR}${SHAREDIR}/portshaker" ]; then mkdir -p "${DESTDIR}${SHAREDIR}/portshaker"; fi
if [ ! -d "${DESTDIR}${ETCDIR}/portshaker.d" ]; then mkdir -p "${DESTDIR}${ETCDIR}/portshaker.d"; fi
tarball:
git archive -o ${TARBALL} v${VERSION}
tag:
git diff-index HEAD
git tag v${VERSION}
.include "Makefile.inc"
.include <bsd.prog.mk>