Makefile SH variable now tweaks the default shell used by our scripts.

This commit is contained in:
Roy Marples
2008-02-27 20:29:32 +00:00
parent 143570689b
commit c2648ca5f5
14 changed files with 22 additions and 23 deletions

View File

@@ -1,14 +1,23 @@
# Install rules for our scripts
# Copyright 2007-2008 Roy Marples <roy@marples.name>
_IN_SH= ls -1 | sed -n -e 's:\.in$$::p' | xargs
_IN!= ${_IN_SH}
OBJS+= ${_IN}$(shell ${_IN_SH})
# We store the contents of the directory for ease of use in Makefiles
_CONTENTS_SH= ls -1 | grep -v Makefile | xargs
_CONTENTS_SH= ls -1 | grep -v "\(Makefile\|.in$$\)" | sed -e 's:\.in$$::g' | xargs
_CONTENTS!= ${_CONTENTS_SH}
CONTENTS= ${_CONTENTS}$(shell ${_CONTENTS_SH})
include ${MK}/sys.mk
include ${MK}/os.mk
# Tweak our shell scripts
.SUFFIXES: .sh.in
.sh.in.sh:
sed -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' $< > $@
all: ${OBJS}
realinstall: ${BIN} ${CONF} ${CONF_APPEND}

View File

@@ -5,6 +5,7 @@ AR?= ar
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib
SH= /bin/sh
PICFLAG?= -fPIC