- ${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD}
-
-beforeinstall:
- install -c -o games -g games -m 600 /dev/null \
- ${DESTDIR}/var/games/hackdir/perm
- install -c -o games -g games -m 600 /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