Use exlicit make targets, not directory contents.
This commit is contained in:
@@ -1,24 +1,6 @@
|
||||
DIR= /etc/init.d
|
||||
_SRCS!= ls *.in
|
||||
SRCS?= ${_SRCS}$(shell ls *.in)
|
||||
OBJS= ${SRCS:.in=}
|
||||
DIR= /etc/init.d
|
||||
SRCS= avahi-dnsconfd.in avahi.in dbus.in hald.in named.in ntpd.in \
|
||||
openvpn.in polkitd.in sshd.in
|
||||
|
||||
MK= ../mk
|
||||
include ${MK}/os.mk
|
||||
include ${MK}/scripts.mk
|
||||
include Makefile.${OS}
|
||||
|
||||
VARBASE?= /var
|
||||
|
||||
.SUFFIXES: .in
|
||||
|
||||
all: ${OBJS}
|
||||
|
||||
.in:
|
||||
sed -e 's:@PREFIX@:${PREFIX}:' -e 's:@VARBASE@:${VARBASE}:' $< > $@
|
||||
|
||||
install: all
|
||||
${INSTALL} -d ${DESTDIR}${DIR}
|
||||
${INSTALL} ${OBJS} ${DESTDIR}${DIR}
|
||||
|
||||
clean:
|
||||
rm -f ${OBJS}
|
||||
|
||||
Reference in New Issue
Block a user