home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume22 / nn6.4 / part21 / Makefile < prev    next >
Makefile  |  1990-06-07  |  2KB  |  104 lines

  1. #
  2. # Makefile for nn release 6.4
  3. #
  4. # Specify your favourite compiler, preprocessor, and compiler flags:
  5. #
  6. # Some alternatives for CPP might be /lib/cpp and $(CC) -P
  7. # Common values for CFLAGS are '-O -s' or '-g'
  8. #
  9.  
  10. CC =        cc
  11. CPP =        $(CC) -E
  12. CFLAGS =    -g
  13. MAKE =        make
  14.  
  15. #
  16. # Before compiling, read the instructions in the file INSTALLATION!
  17. # -----------------------------------------------------------------
  18. #
  19. #    make all    compile programs
  20. #    make install    install programs
  21. #    make initdb    initialize database
  22. #    make clean    remove all make'd files from source directory
  23. #
  24. # no changes are needed below this line
  25. #
  26.  
  27. SHELL = /bin/sh
  28.  
  29. all: ymakefile
  30.     $(MAKE) $(MFLAGS) -f ymakefile all
  31.  
  32. touch: ymakefile
  33.     $(MAKE) -f ymakefile -t all
  34.  
  35. dbg: ymakefile
  36.     $(MAKE) $(MFLAGS) -f ymakefile nn1
  37.  
  38. nn: ymakefile
  39.     $(MAKE) $(MFLAGS) -f ymakefile nn
  40.  
  41. master: ymakefile
  42.     $(MAKE) $(MFLAGS) -f ymakefile master
  43.  
  44. lint: ymakefile
  45.     $(MAKE) -f ymakefile lint
  46.  
  47. install: ymakefile
  48.     $(MAKE) $(MFLAGS) -f ymakefile install
  49.  
  50. initdb: ymakefile
  51.     $(MAKE) $(MFLAGS) -f ymakefile initdb
  52.  
  53. online: ymakefile
  54.     $(MAKE) $(MFLAGS) -f ymakefile online.manual
  55.  
  56. client: ymakefile
  57.     $(MAKE) $(MFLAGS) -f ymakefile client
  58.  
  59. install.client: ymakefile
  60.     $(MAKE) $(MFLAGS) -f ymakefile install.client
  61.  
  62. ymakefile: Makefile xmakefile config.h
  63.     cp xmakefile MF.c
  64.     $(CPP) -DCOMPILER="$(CC)" -DPREPROC="$(CPP)" \
  65.            -DCDEBUG="$(CFLAGS)" -Iconf MF.c | \
  66.     sed -e '1,/MAKE WILL CUT HERE/d' \
  67.         -e '/^#/d' \
  68.         -e '/^[ \f    ]$$/d' \
  69.         -e '/^[ /]*[*]/d' | \
  70.     sed -n -e '/^..*$$/p' > ymakefile
  71.     rm -f MF.c
  72.  
  73. #
  74. # clean up
  75. #    Will remove object and executeable files.
  76. #
  77.  
  78. clean:    ymakefile
  79.     make -f ymakefile clean
  80.     rm -f *.o *~ ymakefile
  81.  
  82. #
  83. # distribution
  84. #
  85.  
  86. distrib: man/nn.1.D
  87.     [ -d DIST ] || mkdir DIST
  88.     rm DIST/Part.*
  89.     makekit -m -k30 -s55000 -nDIST/Part.
  90.  
  91. tar: man/nn.1.D
  92.     chmod +x FILES
  93.     rm -f /tmp/nn64tar*
  94.     tar cf /tmp/nn64tar `FILES`
  95.     cd /tmp && compress nn64tar
  96.  
  97. split: tar
  98.     rm -f /tmp/nn64z*
  99.     cd /tmp && bsplit -b40000 -pnn64z -v < nn64tar.Z
  100.  
  101. man/nn.1.D: man/nn.1
  102.     sh SPLITNN1
  103.     
  104.