freebsd-ports/net/ifdepd/files/patch-Makefile
Jean-Yves Lefort e4db8fae1e - Update to 20050420
- Cleanup the Makefile

PR:		ports/80243
Submitted by:	Alexander Hausner <alex@hugo.bmg.gv.at> (maintainer)
Approved by:	adamw (mentor)
2005-04-22 18:53:12 +00:00

36 lines
1.1 KiB
Text

--- Makefile.orig Wed Apr 20 15:30:18 2005
+++ Makefile Fri Apr 22 16:12:43 2005
@@ -4,10 +4,8 @@
PROG = ifdepd
RM = rm -f
INSTALL = install
-CFLAGS += -O2 -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual
-.if ${OSTYPE}!="OpenBSD"
+CFLAGS += -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual
CFLAGS += -Wredundant-decls
-.endif
MAN8 = ifdepd.8
OBJ = ifdepd.o
@@ -22,18 +20,14 @@
${RM} *.o ${PROJ} *.core core ${PROG} tags *.err
install: ${PROG}
- ${INSTALL} -o root -g wheel -s -m 711 ${PROG} ${PREFIX}/bin
-.if ${OSTYPE}!="OpenBSD"
- ${INSTALL} -o root -g wheel -m 755 ${PROG}.sh ${PREFIX}/etc/rc.d
-.endif
- ${INSTALL} -o root -g wheel -m 644 ${MAN8} ${PREFIX}/man/man8
+ ${BSD_INSTALL_PROGRAM} ${PROG} ${PREFIX}/bin
+ ${BSD_INSTALL_SCRIPT} ${PROG}.sh ${PREFIX}/etc/rc.d
+ ${BSD_INSTALL_MAN} ${MAN8} ${PREFIX}/man/man8
deinstall:
${RM} ${PREFIX}/bin/${PROG}
${RM} ${PREFIX}/man/man8/${PROG}.8
-.if ${OSTYPE}!="OpenBSD"
${RM} ${PREFIX}/etc/rc.d/${PROG}.sh
-.endif
${PROG}: ${OBJ}
${CC} ${CFLAGS} -o ${PROG} ${OBJ} ${LIBS}