2008-01-11 10:55:36 +00:00
|
|
|
DIR= /etc/init.d
|
|
|
|
_SRCS!= ls *.in
|
|
|
|
SRCS?= ${_SRCS}$(shell ls *.in)
|
|
|
|
OBJS= ${SRCS:.in=}
|
2007-11-23 12:04:11 +00:00
|
|
|
|
2008-01-11 10:55:36 +00:00
|
|
|
MK= ../mk
|
|
|
|
include ${MK}/os.mk
|
|
|
|
include Makefile.${OS}
|
|
|
|
|
|
|
|
VARBASE?= /var
|
|
|
|
|
|
|
|
.SUFFIXES: .in
|
|
|
|
|
|
|
|
all: ${OBJS}
|
|
|
|
|
|
|
|
.in:
|
2008-01-11 21:54:33 +00:00
|
|
|
sed -e 's:@PREFIX@:${PREFIX}:' -e 's:@VARBASE@:${VARBASE}:' $< > $@
|
2008-01-11 10:55:36 +00:00
|
|
|
|
2008-01-11 21:54:33 +00:00
|
|
|
install: all
|
|
|
|
${INSTALL} -d ${DESTDIR}${DIR}
|
|
|
|
${INSTALL} ${OBJS} ${DESTDIR}${DIR}
|
2008-01-11 10:55:36 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS}
|