home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110502.etc.tar.gz / bradford.20110502.etc.tar / etc / init.d / Makefile < prev    next >
Makefile  |  2004-08-25  |  482b  |  23 lines

  1. all:
  2.  
  3. RUN  = /etc/init.d/rc${RUNLEVEL}.d
  4. PRE  = /etc/init.d/rc${PREVLEVEL}.d
  5. BOOT = /etc/init.d/boot.d
  6. include /etc/init.d/.depend.${MODE}
  7.  
  8. all: ${TARGETS}
  9.  
  10. ${TARGETS}:
  11. ifeq "${MODE}" "start"
  12.     @test ! -e ${PRE}/K??$@ -a -e ${RUN}/S??$@ && ${RUN}/S??$@ start ||:
  13. else
  14. ifeq "${MODE}" "stop"
  15.     @test -e ${PRE}/K??$@ -a ! -e ${RUN}/S??$@ && ${PRE}/K??$@ stop ||:
  16. else
  17. ifeq "${MODE}" "boot"
  18.     @test -e ${BOOT}/S??$@ && ${BOOT}/S??$@ start ||:
  19. endif
  20. endif
  21. endif
  22. .PHONY: all test ${TARGETS}
  23.