home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / packs / ibpag2 / Makefile < prev    next >
Makefile  |  2001-05-21  |  3KB  |  108 lines

  1. ##########################################################################
  2. #
  3.    PROGNAME = ibpag2
  4. #
  5. ##########################################################################
  6. #
  7. #  User-modifiable section.  Read carefully!  You will almost
  8. #  certainly have to change some settings here.
  9. #
  10.  
  11. #
  12. # Destination directory for binaries files.  Owner and group for
  13. # public executables.  Leave the trailing slash off of directory
  14. # names.
  15. #
  16. OWNER = richard # root
  17. GROUP = group   # root
  18. DESTDIR = /usr/local/bin
  19. # Put this path into your LPATH variable (on which, see the Icon
  20. # documentation).  Make sure that the directory exists.
  21. LIBDIR = /usr/local/lib/icon/data
  22.  
  23. #
  24. # Name of your icon compiler and compiler flags.
  25. #
  26. ICONC = icont
  27. IFLAGS = -u -s #-Sc 400 -Sg 400 -Si 2000 -Sn 4000 -SF 40
  28.  
  29. SHAR = /usr/local/bin/shar
  30. COMPRESS = /usr/bin/compress
  31. # COMPRESS = /usr/local/bin/gzip
  32.  
  33. ###########################################################################
  34. #
  35. #  Don't change anything below this line unless you're really sure of
  36. #  what you're doing.
  37. #
  38.  
  39. AUX = slshupto.icn rewrap.icn outbits.icn sortff.icn itokens.icn
  40. SRC = $(PROGNAME).icn $(AUX) slrtbls.icn slritems.icn follow.icn \
  41.     ibutil.icn iohno.icn ibreader.icn ibwriter.icn shrnktbl.icn \
  42.     version.icn
  43. PARSER = iiparse.lib
  44. GLRPARSER = iiglrpar.lib
  45. SHARFILES = $(SRC) $(PARSER) $(GLRPARSER) sample.ibp beta2ref.ibp \
  46.     iacc.ibp Makefile.dist README
  47.  
  48. all: $(PROGNAME)
  49.  
  50. $(PROGNAME): $(SRC)
  51.     $(ICONC) $(IFLAGS) -o $(PROGNAME) $(SRC)
  52.  
  53.  
  54. ##########################################################################
  55. #
  56. #  Pseudo-target names (shar, install, clean, clobber)
  57. #
  58.  
  59. #
  60. # Assumes you have a shar program like mine.
  61. #
  62. shar: $(SHARFILES)
  63.     @echo ""
  64.     @echo "Removing any old shars in this directory."
  65.     @echo ""
  66.     -rm -f $(PROGNAME).[0-9][0-9].Z
  67.     @echo ""
  68.     $(SHAR) -fVc -o$(PROGNAME) -L32 $(SHARFILES)
  69.     $(COMPRESS) -f $(PROGNAME).[0-9][0-9]
  70.     @echo ""
  71.     @echo "Shell archive finished."
  72.     @echo ""
  73.  
  74. # Pessimistic assumptions regarding the environment (in particular,
  75. # I don't assume you have the BSD "install" shell script).
  76. install: all
  77.     @echo ""
  78.     -test -d $(DESTDIR) || mkdir $(DESTDIR) && chmod 755 $(DESTDIR)
  79.     cp $(PROGNAME) $(DESTDIR)/$(PROGNAME)
  80.     -chgrp $(GROUP) $(DESTDIR)/$(PROGNAME)
  81.     -chown $(OWNER) $(DESTDIR)/$(PROGNAME)
  82.     -chmod 755 $(DESTDIR)/$(PROGNAME)
  83.     -test -d $(LIBDIR) || mkdir $(LIBDIR) && chmod 755 $(LIBDIR)
  84.     cp $(PARSER) $(LIBDIR)/$(PARSER)
  85.     cp $(GLRPARSER) $(LIBDIR)/$(GLRPARSER)
  86.     -chgrp $(GROUP) $(LIBDIR)/$(PARSER)
  87.     -chown $(OWNER) $(LIBDIR)/$(PARSER)
  88.     -chgrp $(GROUP) $(LIBDIR)/$(GLRPARSER)
  89.     -chown $(OWNER) $(LIBDIR)/$(GLRPARSER)
  90.     -chmod 644 $(LIBDIR)/$(PARSER)
  91.     -chmod 644 $(LIBDIR)/$(GLRPARSER)
  92.     @echo ""
  93.     @echo "Done installing."
  94.     @echo ""
  95.  
  96. #  Build executable and copy to ../../iexe.
  97. #  Nothing done in this case because the executable doesn't stand alone.
  98. Iexe:    
  99.  
  100.  
  101. #
  102. # Cleanup
  103. #
  104. clean:
  105.     -rm -f *~ #*# core *.u[12] $(PROGNAME).output
  106. Clean clobber: clean
  107.     -rm -f $(PROGNAME)
  108.