Use exlicit make targets, not directory contents.

This commit is contained in:
Roy Marples
2008-03-03 12:34:51 +00:00
parent 0aedc02860
commit 61c476e72d
21 changed files with 45 additions and 57 deletions

View File

@@ -1,18 +1,11 @@
# Install rules for our scripts
# Copyright 2007-2008 Roy Marples <roy@marples.name>
_IN_SH= ls -1 | sed -n -e 's:\.in$$::p' | xargs; echo
_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 | sed -e 's:\.in$$::g' | sort -u | xargs
_CONTENTS!= ${_CONTENTS_SH}
CONTENTS= ${_CONTENTS}$(shell ${_CONTENTS_SH})
include ${MK}/sys.mk
include ${MK}/os.mk
OBJS+= ${SRCS:.in=}
# Tweak our shell scripts
.SUFFIXES: .sh.in .in
.sh.in.sh: