aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/Makefile
blob: a2be54703bfa28710a3cb05f51e56f73b15c350c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DIR=		/etc/init.d
_SRCS!=		ls *.in
SRCS?=		${_SRCS}$(shell ls *.in)
OBJS=		${SRCS:.in=}

MK=		../mk
include ${MK}/os.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}