diff options
author | Roy Marples <roy@marples.name> | 2008-03-26 14:27:46 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-26 14:27:46 +0000 |
commit | 833903fc78743ded22abcc49fba285ff9ddb8e8a (patch) | |
tree | 726e8d03bacbdb4b43c4165f93192633f4afe324 /mk | |
parent | ccf238f852fd0463e68d33b91f0dd55000c325e3 (diff) |
use $CP and $SED instead of cp and sed
Diffstat (limited to 'mk')
-rw-r--r-- | mk/scripts.mk | 4 | ||||
-rw-r--r-- | mk/subdir.mk | 14 | ||||
-rw-r--r-- | mk/sys.mk | 2 |
3 files changed, 4 insertions, 16 deletions
diff --git a/mk/scripts.mk b/mk/scripts.mk index e6889fc4..e1616cc9 100644 --- a/mk/scripts.mk +++ b/mk/scripts.mk @@ -16,10 +16,10 @@ SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR # Tweak our shell scripts .SUFFIXES: .sh.in .in .sh.in.sh: - sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ + ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ .in: - sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ + ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ all: ${OBJS} diff --git a/mk/subdir.mk b/mk/subdir.mk index fcb5cf22..fbac0bab 100644 --- a/mk/subdir.mk +++ b/mk/subdir.mk @@ -12,20 +12,6 @@ _SUBDIR = @${_+_}for x in ${SUBDIR}; do \ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \ cd ..; \ fi; \ - if test -d $$x.${OS}; then \ - ${ECHODIR} "===> ${DIRPRFX}$$x.${OS} (${@:realinstall=install})"; \ - cd $$x.${OS}; \ - ${MAKE} ${@:realinstall=install} \ - DIRPRFX=${DIRPRFX}$$x.${OS}/ || exit $$?; \ - cd ..; \ - fi; \ - if test "${SUBOS}" != "${OS}" && test -d $$x.${SUBOS}; then \ - ${ECHODIR} "===> ${DIRPRFX}$$x.${SUBOS} (${@:realinstall=install})"; \ - cd $$x.${SUBOS}; \ - ${MAKE} ${@:realinstall=install} \ - DIRPRFX=${DIRPRFX}$$x.${SUBOS}/ || exit $$?; \ - cd ..; \ - fi; \ done all: @@ -2,9 +2,11 @@ # Copyright 2008 Roy Marples AR?= ar +CP?= cp ECHO?= echo INSTALL?= install RANLIB?= ranlib +SED?= sed SH= /bin/sh PREFIX?= |