home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume44 / ibpag2 / part03 / Makefile.dist < prev    next >
Makefile  |  1994-09-25  |  3KB  |  104 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/lib/icon/data
  22.  
  23. #
  24. # Name of your icon compiler and compiler flags.
  25. #
  26. ICONC = /usr/icon/v9/bin/icont
  27. IFLAGS = -u #-Sc 400 -Sg 400 -Si 2000 -Sn 4000 -SF 40
  28.  
  29. SHELL = /bin/sh
  30. SHAR = /usr/bin/shar
  31. COMPRESS = /usr/bin/compress
  32. # COMPRESS = /usr/local/bin/gzip
  33.  
  34. ###########################################################################
  35. #
  36. #  Don't change anything below this line unless you're really sure of
  37. #  what you're doing.
  38. #
  39.  
  40. AUX = slshupto.icn rewrap.icn outbits.icn sortff.icn itokens.icn
  41. SRC = $(PROGNAME).icn $(AUX) slrtbls.icn slritems.icn follow.icn \
  42.     ibutil.icn iohno.icn ibreader.icn ibwriter.icn shrnktbl.icn \
  43.     version.icn
  44. PARSER = iiparse.lib
  45. GLRPARSER = iiglrpar.lib
  46. SHARFILES = $(SRC) $(PARSER) $(GLRPARSER) sample.ibp beta2ref.ibp \
  47.     iacc.ibp Makefile.dist README
  48.  
  49. all: $(PROGNAME)
  50.  
  51. $(PROGNAME): $(SRC)
  52.     $(ICONC) $(IFLAGS) -o $(PROGNAME) $(SRC)
  53.  
  54.  
  55. ##########################################################################
  56. #
  57. #  Pseudo-target names (shar, install, clean, clobber)
  58. #
  59.  
  60. #
  61. # Assumes you have a shar program like mine.
  62. #
  63. shar: $(SHARFILES)
  64.     @echo ""
  65.     @echo "Removing any old shars in this directory."
  66.     @echo ""
  67.     -rm -f $(PROGNAME).[0-9][0-9].Z
  68.     @echo ""
  69.     $(SHAR) -fVc -o$(PROGNAME). -l32 $(SHARFILES)
  70.     $(COMPRESS) -f $(PROGNAME).[0-9][0-9]
  71.     @echo ""
  72.     @echo "Shell archive finished."
  73.     @echo ""
  74.  
  75. # Pessimistic assumptions regarding the environment (in particular,
  76. # I don't assume you have the BSD "install" shell script).
  77. install: all
  78.     @echo ""
  79.     -test -d $(DESTDIR) || mkdir $(DESTDIR) && chmod 755 $(DESTDIR)
  80.     cp $(PROGNAME) $(DESTDIR)/$(PROGNAME)
  81.     -chgrp $(GROUP) $(DESTDIR)/$(PROGNAME)
  82.     -chown $(OWNER) $(DESTDIR)/$(PROGNAME)
  83.     -chmod 755 $(DESTDIR)/$(PROGNAME)
  84.     -test -d $(LIBDIR) || mkdir $(LIBDIR) && chmod 755 $(LIBDIR)
  85.     cp $(PARSER) $(LIBDIR)/$(PARSER)
  86.     cp $(GLRPARSER) $(LIBDIR)/$(GLRPARSER)
  87.     -chgrp $(GROUP) $(LIBDIR)/$(PARSER)
  88.     -chown $(OWNER) $(LIBDIR)/$(PARSER)
  89.     -chgrp $(GROUP) $(LIBDIR)/$(GLRPARSER)
  90.     -chown $(OWNER) $(LIBDIR)/$(GLRPARSER)
  91.     -chmod 644 $(LIBDIR)/$(PARSER)
  92.     -chmod 644 $(LIBDIR)/$(GLRPARSER)
  93.     @echo ""
  94.     @echo "Done installing."
  95.     @echo ""
  96.  
  97. #
  98. # Cleanup
  99. #
  100. clean:
  101.     -rm -f *~ #*# core *.u[12] $(PROGNAME).output
  102. clobber: clean
  103.     -rm $(PROGNAME)
  104.