From 8712b8a346f61cb453edaadb0db8bf926c7b8f39 Mon Sep 17 00:00:00 2001 From: emaste Date: Tue, 26 Mar 2013 20:32:46 +0000 Subject: Always define and use PROGNAME This avoids having separate cases in the install rule for PROGNAME set and not set. This is a minor cleanup in advance of further support for standalone debug files. --- share/mk/bsd.prog.mk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'share/mk') diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 5ceafcc..0991915 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -41,6 +41,7 @@ PROG= ${PROG_CXX} .endif .if defined(PROG) +PROGNAME?= ${PROG} .if defined(SRCS) OBJS+= ${SRCS:N*.h:R:S/$/.o/g} @@ -153,13 +154,8 @@ realinstall: _proginstall .ORDER: beforeinstall _proginstall _proginstall: .if defined(PROG) -.if defined(PROGNAME) ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}/${PROGNAME} -.else - ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR} -.endif .endif .endif # !target(realinstall) -- cgit v1.1