aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/scripts.mk4
-rw-r--r--mk/subdir.mk14
-rw-r--r--mk/sys.mk2
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:
diff --git a/mk/sys.mk b/mk/sys.mk
index bcf87d75..47e4adca 100644
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -2,9 +2,11 @@
# Copyright 2008 Roy Marples
AR?= ar
+CP?= cp
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib
+SED?= sed
SH= /bin/sh
PREFIX?=