-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmkinfo.mk
33 lines (25 loc) · 845 Bytes
/
mkinfo.mk
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
NAME= macrandr
DAEMON_NAME=${NAME}d
V= 0.1.0
PKGNAME= ${DAEMON_NAME}-${V}
DISTNAME= ${DAEMON_NAME}.${V}
LOCAL_DAEMON_FILE= /etc/rc.conf.local
PREFIX=${LOCALBASE}/usr/local
BINDIR=${PREFIX}/sbin/
MANDIR=${LOCALBASE}/usr/share/man/man8/
CFLAGS+= -fstack-protector-all
CFLAGS+= -Wunused-variable
CFLAGS+= -Wall
CFLAGS+= -Wstrict-prototypes
dist:
@echo "Cleaning up..."
@rm -f ${NAME} *.o ${DAEMON_NAME}-*.tar.gz tags.* src/${NAME}.o
@echo "Cleaning up: done."
@tar -czNs "|\(.*\)|${DAEMON_NAME}-${V}/\1|" -f ../${DAEMON_NAME}-${V}.tar.gz *
@echo "${DAEMON_NAME}-${V}.tar.gz"
uninstall_and_dist: clean
@echo "Cleaning up..."
@rm -f ${NAME} *.o ${DAEMON_NAME}-*.tar.gz tags.* src/${NAME}.o
@echo "Cleaning up: done."
@tar -czNs "|\(.*\)|${DAEMON_NAME}-${V}/\1|" -f ../${DAEMON_NAME}-${V}.tar.gz *
@echo "${DAEMON_NAME}-${V}.tar.gz"