diff options
Diffstat (limited to 'mk/scripts.mk')
-rw-r--r-- | mk/scripts.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/scripts.mk b/mk/scripts.mk index b84f05ef..a77e17e5 100644 --- a/mk/scripts.mk +++ b/mk/scripts.mk @@ -6,13 +6,15 @@ include ${MK}/os.mk OBJS+= ${SRCS:.in=} +_SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@PKG_PREFIX@:${PKG_PREFIX}:g' -e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g' + # Tweak our shell scripts .SUFFIXES: .sh.in .in .sh.in.sh: - sed -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@PKG_PREFIX@:${PKG_PREFIX}:g' -e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g' $< > $@ + sed ${_SED_REPLACE} $< > $@ .in: - sed -e 's:@PREFIX@:${PREFIX}:g' -e 's:@PKG_PREFIX@:${PKG_PREFIX}:g' -e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g' $< > $@ + sed ${_SED_REPLACE} $< > $@ all: ${OBJS} |