home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / misc / cachebuild.shar / Makefile < prev    next >
Encoding:
Makefile  |  1996-10-25  |  713 b   |  32 lines

  1. #
  2. # Makefile for the CACHE BUILD package.
  3. #
  4.  
  5. # where to put the main executable shell script
  6. BIN=/usr/com/bin
  7.  
  8. # where to put the awk script  (note: change this in cachebuild, too!)
  9. LIB=/usr/com/lib
  10.  
  11. # name of root.cache type output file
  12. CACHEFILE=root.cache
  13.  
  14. # Note: fix PATH variable in cachebuild.SH script before building.
  15.  
  16.  
  17. all:    cachebuild
  18.  
  19. cachebuild:    cachebuild.SH
  20.     echo "s,CBAWKPATH,$(LIB)/cachebuild.awk,g" > fix.sed
  21.     echo "s,CACHEFILE,$(CACHEFILE),g" >> fix.sed
  22.     sed -f fix.sed < cachebuild.SH > cachebuild
  23.     rm -f fix.sed
  24.     chmod 755 cachebuild
  25.  
  26. install:    all
  27.     install -c -m 755 -o bin -g bin cachebuild $(BIN)
  28.     install -c -m 644 -o bin -g bin cachebuild.awk $(LIB)
  29.  
  30. clean:
  31.     -rm -f cachebuild root.cache*
  32.