summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-26 14:27:46 +0000
committerRoy Marples <roy@marples.name>2008-03-26 14:27:46 +0000
commit833903fc78743ded22abcc49fba285ff9ddb8e8a (patch)
tree726e8d03bacbdb4b43c4165f93192633f4afe324
parentccf238f852fd0463e68d33b91f0dd55000c325e3 (diff)
downloadopenrc-833903fc78743ded22abcc49fba285ff9ddb8e8a.tar.gz
openrc-833903fc78743ded22abcc49fba285ff9ddb8e8a.tar.bz2
openrc-833903fc78743ded22abcc49fba285ff9ddb8e8a.tar.xz
use $CP and $SED instead of cp and sed
-rw-r--r--doc/Makefile.FreeBSD2
-rw-r--r--doc/Makefile.Linux2
-rw-r--r--doc/Makefile.NetBSD2
-rw-r--r--mk/scripts.mk4
-rw-r--r--mk/subdir.mk14
-rw-r--r--mk/sys.mk2
-rw-r--r--net/Makefile.FreeBSD2
-rw-r--r--net/Makefile.Linux2
-rw-r--r--net/Makefile.NetBSD2
-rw-r--r--sh/Makefile.FreeBSD2
-rw-r--r--sh/Makefile.Linux2
-rw-r--r--sh/Makefile.NetBSD2
12 files changed, 13 insertions, 25 deletions
diff --git a/doc/Makefile.FreeBSD b/doc/Makefile.FreeBSD
index d40d942..a21536b 100644
--- a/doc/Makefile.FreeBSD
+++ b/doc/Makefile.FreeBSD
@@ -2,4 +2,4 @@ SRCS+= net.example.in
.SUFFIXES: .BSD.in
.BSD.in:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CP} $< $@
diff --git a/doc/Makefile.Linux b/doc/Makefile.Linux
index 5981ec1..405f7ea 100644
--- a/doc/Makefile.Linux
+++ b/doc/Makefile.Linux
@@ -2,4 +2,4 @@ SRCS+= net.example.in
.SUFFIXES: .Linux.in
.Linux.in:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CP} $< $@
diff --git a/doc/Makefile.NetBSD b/doc/Makefile.NetBSD
index d40d942..a21536b 100644
--- a/doc/Makefile.NetBSD
+++ b/doc/Makefile.NetBSD
@@ -2,4 +2,4 @@ SRCS+= net.example.in
.SUFFIXES: .BSD.in
.BSD.in:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CP} $< $@
diff --git a/mk/scripts.mk b/mk/scripts.mk
index e6889fc..e1616cc 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 fcb5cf2..fbac0ba 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 bcf87d7..47e4adc 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?=
diff --git a/net/Makefile.FreeBSD b/net/Makefile.FreeBSD
index cd1a671..1a661db 100644
--- a/net/Makefile.FreeBSD
+++ b/net/Makefile.FreeBSD
@@ -3,4 +3,4 @@ INC+= iwconfig.sh
.SUFFIXES: .sh.BSD.in
.sh.BSD.in.sh:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CP} $< $@
diff --git a/net/Makefile.Linux b/net/Makefile.Linux
index 1a496c7..5cd456e 100644
--- a/net/Makefile.Linux
+++ b/net/Makefile.Linux
@@ -5,4 +5,4 @@ INC+= adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \
.SUFFIXES: .sh.Linux.in
.sh.Linux.in.sh:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CP} $< $@
diff --git a/net/Makefile.NetBSD b/net/Makefile.NetBSD
index 2ff4750..9ae5598 100644
--- a/net/Makefile.NetBSD
+++ b/net/Makefile.NetBSD
@@ -1,3 +1,3 @@
.SUFFIXES: .sh.BSD.in
.sh.BSD.in.sh:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CP} $< $@
diff --git a/sh/Makefile.FreeBSD b/sh/Makefile.FreeBSD
index 48e6ba5..93a00a0 100644
--- a/sh/Makefile.FreeBSD
+++ b/sh/Makefile.FreeBSD
@@ -4,5 +4,5 @@ NET_LO= net.lo0
.SUFFIXES: .sh.BSD.in
.sh.BSD.in.sh:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
diff --git a/sh/Makefile.Linux b/sh/Makefile.Linux
index fed0e7a..b73b466 100644
--- a/sh/Makefile.Linux
+++ b/sh/Makefile.Linux
@@ -4,5 +4,5 @@ BIN+= init-early.sh
.SUFFIXES: .sh.Linux.in
.sh.Linux.in.sh:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
diff --git a/sh/Makefile.NetBSD b/sh/Makefile.NetBSD
index f348019..0e4200a 100644
--- a/sh/Makefile.NetBSD
+++ b/sh/Makefile.NetBSD
@@ -6,4 +6,4 @@ BIN+= ifwatchd-carrier.sh ifwatchd-nocarrier.sh
.SUFFIXES: .sh.BSD.in
.sh.BSD.in.sh:
- sed ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@