- ${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 \
- ${DESTDIR}/var/games/hackdir/perm
- install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
- ${DESTDIR}/var/games/hackdir/record
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/help \
- ${.CURDIR}/hh ${.CURDIR}/data ${DESTDIR}/var/games/hackdir
- rm -f ${DESTDIR}/var/games/hackdir/bones*
-
-.include <bsd.prog.mk>
+ clang -o makedefs makedefs.c
+
+hack.h: hack.onames.h
+
+$(PROG): $(SRCS) hack.h
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
+ $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+ $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+ mkdir -p $(DESTDIR)$(FILESDIR)
+ $(GINSTALL) -Dm660 $(FILES) $(DESTDIR)$(FILESDIR)
+
+clean:
+ rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install