replace beforeinstall target with LINKS; rot13 becomes a hardlink to
authorokan <okan@openbsd.org>
Wed, 16 Jul 2014 16:56:45 +0000 (16:56 +0000)
committerokan <okan@openbsd.org>
Wed, 16 Jul 2014 16:56:45 +0000 (16:56 +0000)
caesar instead of a symlink.

agreed by deraadt, sobrado, guenther

games/caesar/Makefile

index bf1a4b3..940dadd 100644 (file)
@@ -1,12 +1,10 @@
-#      $OpenBSD: Makefile,v 1.5 1998/02/26 07:58:07 deraadt Exp $
+#      $OpenBSD: Makefile,v 1.6 2014/07/16 16:56:45 okan Exp $
 
 PROG=  caesar
 MAN=   caesar.6
 DPADD= ${LIBM}
 LDADD= -lm
 MLINKS=        caesar.6 rot13.6
-
-beforeinstall:
-       (cd ${DESTDIR}/usr/games; rm -f rot13; ln -s caesar rot13)
+LINKS= ${BINDIR}/caesar ${BINDIR}/rot13
 
 .include <bsd.prog.mk>