aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/Makefile
blob: 693f91341f648f93d4f6b14e25d0ff8ec3b92bdb (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
25
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 
	for x in ${OBJS}; do \
		${INSTALL} work/$$x ${DESTDIR}${DIR}; \
	done

clean:
	rm -f ${OBJS}