- ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD}
-
-beforeinstall:
- @if [ ! -d ${DESTDIR}/var/games/hackdir ]; then \
- /bin/rm -f ${DESTDIR}/var/games/hackdir ; \
- mkdir -p ${DESTDIR}/var/games/hackdir ; \
- chown games.games ${DESTDIR}/var/games/hackdir ; \
- chmod 755 ${DESTDIR}/var/games/hackdir ; \
- else \
- true ; \
- fi
- install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
+ ${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c
+
+hack.h: hack.onames.h
+
+.if !exists(${DESTDIR}${FILESDIR}/perm)
+afterinstall: clobber
+.endif
+
+clobber:
+ ${INSTALL_FILE} -o games -g games -m 660 /dev/null \