home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sources / misc / 4110 / Makefile.SH
Encoding:
Makefile  |  1992-11-20  |  4.8 KB  |  198 lines

  1. : Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 2.8 PL13]
  2. : $X-Id: Jmake.tmpl,v 2.8.1.2 91/11/18 13:22:54 ram Exp $
  3.  
  4. case $CONFIG in
  5. '')
  6.     if test ! -f config.sh; then
  7.         ln ../config.sh . || \
  8.         ln ../../config.sh . || \
  9.         ln ../../../config.sh . || \
  10.         (echo "Can't find config.sh."; exit 1)
  11.     fi 2>/dev/null
  12.     . ./config.sh
  13.     ;;
  14. esac
  15. case "$0" in
  16. */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  17. esac
  18. CURRENT=.
  19. DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
  20. echo "Extracting ${DIR}Makefile (with variable substitutions)"
  21. DATE=`date`
  22. $spitshell >Makefile <<!GROK!THIS!
  23. ########################################################################
  24. # Makefile generated from Makefile.SH on $DATE
  25.  
  26. SHELL = /bin/sh
  27. JMAKE = jmake
  28. TOP = .
  29. CURRENT = $CURRENT
  30. DIR = $DIR
  31.  
  32. ########################################################################
  33. # Parameters set by Configure -- edit config.sh if changes are needed
  34.  
  35. CTAGS = ctags
  36. MAKE = make
  37. MV = $mv
  38. RM = $rm -f
  39.  
  40. ########################################################################
  41. # Automatically generated parameters -- do not edit
  42.  
  43. SUBDIRS = agent
  44.  
  45. !GROK!THIS!
  46. $spitshell >>Makefile <<'!NO!SUBS!'
  47.  
  48. ########################################################################
  49. # Jmake rules for building libraries, programs, scripts, and data files
  50. # $X-Id: Jmake.rules,v 2.8.1.4 91/11/18 13:19:07 ram Exp $
  51.  
  52. ########################################################################
  53. # Start of Jmakefile
  54.  
  55. # $X-Id: Jmakefile,v 2.9 92/07/14 16:46:57 ram Exp $
  56. #
  57. #  Copyright (c) 1991, Raphael Manfredi
  58. #
  59. #  You may redistribute only under the terms of the GNU General Public
  60. #  Licence as specified in the README file that comes with dist.
  61. #
  62. # $X-Log:    Jmakefile,v $
  63. # Revision 2.9  92/07/14  16:46:57  ram
  64. # 3.0 beta baseline.
  65. #
  66.  
  67. all::
  68.  
  69. local_clobber::
  70.     $(RM) install mkdep cppstdin
  71.  
  72. depend::
  73.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  74.     for i in $(SUBDIRS) ;\
  75.     do \
  76.         (cd $$i ; echo "Depending" "in $(DIR)$$i..."; \
  77.             $(MAKE) $(MFLAGS)  depend); \
  78.     done
  79.  
  80. ########################################################################
  81. # Common rules for all Makefiles -- do not edit
  82.  
  83. emptyrule::
  84.  
  85. clean: sub_clean local_clean
  86. realclean: sub_realclean local_realclean
  87. clobber: sub_clobber local_clobber
  88.  
  89. local_clean::
  90.     $(RM) core *~ *.o
  91.  
  92. local_realclean:: local_clean
  93.     $(RM) -r UU
  94.  
  95. local_clobber:: local_realclean
  96.     $(RM) config.sh config.h
  97.     $(RM) Makefile
  98.  
  99. Makefile.SH: Jmakefile
  100.     -@if test -f $(TOP)/.package; then \
  101.         if test -f Makefile.SH; then \
  102.             echo "    $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
  103.             $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
  104.         fi; \
  105.         echo "    $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
  106.         $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
  107.     else touch $@; exit 0; fi
  108.  
  109. Makefile: Makefile.SH
  110.     /bin/sh Makefile.SH
  111.  
  112. tags::
  113.     $(CTAGS) -w *.[ch]
  114.     $(CTAGS) -xw *.[ch] > tags
  115.  
  116. local_clobber::
  117.     $(RM) tags
  118.  
  119. ########################################################################
  120. # Rules for building in sub-directories -- do not edit
  121.  
  122. subdirs:
  123.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  124.     for i in $(SUBDIRS) ;\
  125.     do \
  126.         (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
  127.             $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)); \
  128.     done
  129.  
  130. install::
  131.     @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
  132.  
  133. deinstall::
  134.     @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
  135.  
  136. install.man::
  137.     @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
  138.  
  139. deinstall.man::
  140.     @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
  141.  
  142. sub_clean::
  143.     @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
  144.     @echo "Back to $(CURRENT) for "clean...
  145.  
  146. sub_realclean::
  147.     @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
  148.     @echo "Back to $(CURRENT) for "realclean...
  149.  
  150. sub_clobber::
  151.     @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
  152.     @echo "Back to $(CURRENT) for "clobber...
  153.  
  154. tag::
  155.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  156.     for i in  ;\
  157.     do \
  158.         (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
  159.             $(MAKE) $(MFLAGS)  tag); \
  160.     done
  161.  
  162. Makefiles::
  163.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  164.     for i in $(SUBDIRS);\
  165.     do \
  166.         echo "Making "Makefiles" in $(DIR)$$i..."; \
  167.         (cd $$i || exit 1; \
  168.         if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
  169.         $(MAKE) $(MFLAGS) Makefiles) \
  170.     done
  171.  
  172. Makefiles.SH:: Makefile.SH
  173.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  174.     for i in $(SUBDIRS);\
  175.     do \
  176.         case "$(DIR)$$i/" in \
  177.         */*/*/*/) newtop=../../../..;; \
  178.         */*/*/) newtop=../../..;; \
  179.         */*/) newtop=../..;; \
  180.         */) newtop=..;; \
  181.         esac; \
  182.         case "$(TOP)" in \
  183.         /*) newtop="$(TOP)" ;; \
  184.         esac; \
  185.         echo "Making Makefiles.SH in $(DIR)$$i..."; \
  186.         (cd $$i || exit 1; $(MAKE) $(MFLAGS) -f ../Makefile \
  187.         Makefile TOP=$$newtop CURRENT=$(DIR)$$i;\
  188.         $(MAKE) $(MFLAGS) Makefiles.SH) \
  189.     done
  190.  
  191. all::
  192.     @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=
  193.  
  194. !NO!SUBS!
  195. chmod 644 Makefile
  196. $eunicefix Makefile
  197.  
  198.