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