sysmgr

a simplistic service supervisor (deprecated)
git clone git://git.ckyln.com/~cem/sysmgr.git
Log | Files | Refs | README | LICENSE

Makefile (1104B)


      1 # See LICENSE for copyright information
      2 PREFIX    = /usr/local
      3 BINDIR    = ${PREFIX}/bin
      4 SHAREDIR  = ${PREFIX}/share
      5 MANPREFIX = ${SHAREDIR}/man
      6 MAN1      = ${MANPREFIX}/man1
      7 MAN8      = ${MANPREFIX}/man8
      8 
      9 LINK = runsyssv svctl
     10 
     11 all: utils
     12 
     13 utils:
     14 	@${MAKE} -C utils
     15 
     16 install: all
     17 	mkdir -p ${DESTDIR}${BINDIR} ${DESTDIR}${MAN1} ${DESTDIR}${MAN8}
     18 	cp sysmgr utils/sysmgr-needs utils/checkprocess ${DESTDIR}${BINDIR}
     19 	chmod 755 ${DESTDIR}${BINDIR}/sysmgr
     20 	chmod 755 ${DESTDIR}${BINDIR}/sysmgr-needs
     21 	chmod 755 ${DESTDIR}${BINDIR}/checkprocess
     22 	for link in ${LINK} ; do ln -sf sysmgr ${DESTDIR}${BINDIR}/$$link ; done
     23 	cp man/svctl.1  ${DESTDIR}${MAN1}
     24 	cp man/sysmgr.8 ${DESTDIR}${MAN8}
     25 	chmod 644 ${DESTDIR}${MAN1}/svctl.1
     26 	chmod 644 ${DESTDIR}${MAN8}/sysmgr.8
     27 
     28 uninstall:
     29 	rm -f ${DESTDIR}${BINDIR}/sysmgr \
     30 		${DESTDIR}${BINDIR}/sysmgr-needs \
     31 		${DESTDIR}${BINDIR}/checkprocess \
     32 		${DESTDIR}${BINDIR}/svctl \
     33 		${DESTDIR}${BINDIR}/runsyssv
     34 	rm -f ${DESTDIR}${MANPREFIX}/man1/svctl.1 \
     35 		${DESTDIR}${MANPREFIX}/man8/sysmgr.8
     36 
     37 clean:
     38 	@${MAKE} -C utils clean
     39 
     40 .PHONY: all utils install uninstall clean