home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ade-misc-src.tgz / ade-misc-src.tar / Makefile.in < prev   
Makefile  |  1996-10-13  |  3KB  |  97 lines

  1. srcdir =    @srcdir@
  2. VPATH =        @srcdir@
  3.  
  4. INSTALL =    @INSTALL@
  5. INSTALL_DATA =    @INSTALL_DATA@
  6. INSTALL_PROGRAM = @INSTALL_PROGRAM
  7. CC =        @CC@
  8. CFLAGS =    @CFLAGS@
  9. LDFLAGS =    @LDFLAGS@
  10.  
  11. prefix =    @prefix@
  12.  
  13. FLAGS_TO_PASS = \
  14.         "CC=$(CC)" \
  15.         "CFLAGS=$(CFLAGS)" \
  16.         "LDFLAGS=$(LDFLAGS)" \
  17.         "INSTALL=$(INSTALL)" \
  18.         "INSTALL_DATA=$(INSTALL_DATA)" \
  19.         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
  20.  
  21. SUBDIRS =    bsd contrib docs fsf
  22.  
  23. all:
  24.         for i in $(SUBDIRS); do \
  25.             if [ -d $$i ] ; then \
  26.                 echo "======== $$i ========"; \
  27.                 (cd $$i && $(MAKE)); \
  28.             fi; \
  29.         done
  30.  
  31. install:
  32.         for i in *; do \
  33.             if [ -d $$i ] ; then \
  34.                 echo "======== $$i ========"; \
  35.                 (cd $$i && $(MAKE) install); \
  36.             fi; \
  37.         done
  38.         $(INSTALL_DATA) config.cache $(prefix)/etc/config.cache
  39.         # This is a hack until we work out some packaging
  40.         # issues
  41.         sh -x $(srcdir)/scripts/strip.sh
  42.  
  43. FileList:
  44.         touch $@
  45.         find . -type f -print | sort | sed \
  46.             -e "s/^.\///" \
  47.             -e "/CVS\/Root/d" \
  48.             -e "/CVS\/Repository/d" \
  49.             -e "/CVS\/Entries/d" \
  50.             >$@
  51.  
  52. CRCList:    FileList
  53.         brik -Gvbf $? >$@
  54.  
  55. # This target tests the coverage of the manifest files for the contents
  56. # of the ADE-bin tree.
  57. #
  58. # The output is the file /tmp/coverage.diff, which will show which files
  59. # (if any) are listed in the manifest files, but not found in the actual
  60. # binary tree, which files are not listed in any manifest file, etc.
  61. #
  62. # We also find out which files, if any, appear in more than one manifest
  63. # file.  This list is left in /tmp/dups.diff.
  64. #
  65. # Note that the manifests/bin-IGNORE file contains the few random names
  66. # of files that are currently in the binary tree but do not get used in
  67. # building any of the archives in ADE-dist.  Most of these should
  68. # eventually go away.
  69.  
  70. bin-coverage:    FileList
  71.     grep "manifests/[^/]*bin[0-9]*$$" FileList >/tmp/manifests
  72.     cat manifests/bin-IGNORE `cat /tmp/manifests` | sort >/tmp/manifest-files-all
  73.     uniq </tmp/manifest-files-all >/tmp/manifest-files-uniq
  74.     -diff /tmp/manifest-files-all /tmp/manifest-files-uniq >/tmp/dups.diff
  75.     (cd /ade; find . -type f -print) | sort | uniq | sed "s:^./::" >/tmp/ade-files
  76.     -diff /tmp/manifest-files-uniq /tmp/ade-files >/tmp/coverage.diff
  77.  
  78. src-coverage:    FileList
  79.     grep "manifests/[^/]*src[0-9]*$$" FileList >/tmp/manifests
  80.     cat `cat /tmp/manifests` | sort >/tmp/manifest-files-all
  81.     uniq </tmp/manifest-files-all >/tmp/manifest-files-uniq
  82.     -diff /tmp/manifest-files-all /tmp/manifest-files-uniq >/tmp/dups.diff
  83.     cat FileList | grep -v /CVS/ | grep -v ^CVS | uniq >/tmp/ade-files
  84.     -diff /tmp/manifest-files-uniq /tmp/ade-files >/tmp/coverage.diff
  85.  
  86. bin-archives:    FileList
  87.     grep "manifests/[^/]*bin[0-9]*$$" FileList >/tmp/manifests
  88.     sh scripts/packfiles.sh --to=/src/ade-dist --from=/ade --tmp=/iso/tmp </tmp/manifests
  89.     chmod a-rwx /src/ade-dist/at-inc-bin.lha /src/ade-dist/at-lib-bin.lha
  90.  
  91. src-archives:    FileList
  92.     grep "manifests/[^/]*src[0-9]*$$" FileList >/tmp/manifests
  93.     sh scripts/packfiles.sh --tgz --to=/src/ade-dist --from=/spare/ade --tmp=/src/ade-dist/tmp </tmp/manifests
  94.  
  95. diffs:
  96.     sh scripts/creatediffs.sh --to=/src/ade-dist --from=/src/ade-dist --tmp=/src/ade-dist/tmp
  97.