home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / itcl1_31.z / itcl1_31 / tcldev / itcl-1.3 / man / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-10-14  |  2.5 KB  |  71 lines

  1. # ---------------------------------------------------------------------------
  2. #           [incr Tcl] - Object-oriented programming in Tcl
  3. # ---------------------------------------------------------------------------
  4. # This file is a Makefile for [incr Tcl].  If it has the name "Makefile.in"
  5. # then it is a template for a Makefile; to generate the actual Makefile,
  6. # run "./configure", which is a configuration script generated by the
  7. # "autoconf" program (constructs like "@foo@" will get replaced in the
  8. # actual Makefile.
  9. # ---------------------------------------------------------------------------
  10.  
  11. # ---------------------------------------------------------------------------
  12. # Things you can change to personalize the Makefile for your own site.
  13. # (You can make these changes in either Makefile.in or Makefile, but
  14. # changes to Makefile will get lost if you re-run the configuration script.)
  15. # ---------------------------------------------------------------------------
  16. # INSTALLATION DIRECTORIES
  17. # ---------------------------------------------------------------------------
  18.  
  19. # Top-level directory in which to install machine-independent files:
  20. prefix = /usr/local
  21.  
  22. # Top-level directory for manual entries:
  23. MAN_DIR = $(prefix)/man
  24.  
  25. # Directory in which to install manual entry for [incr Tcl]:
  26. MANN_DIR = $(MAN_DIR)/mann
  27.  
  28. # ---------------------------------------------------------------------------
  29. # The information below is modified by the configure script when Makefile
  30. # is generated from Makefile.in.  You shouldn't normally modify any of
  31. # this stuff by hand.
  32. # ---------------------------------------------------------------------------
  33.  
  34. SRC_DIR =        @srcdir@
  35. VPATH =            @srcdir@
  36.  
  37. # ---------------------------------------------------------------------------
  38. # The information below should be usable as is.  The configure script
  39. # won't modify it and you shouldn't need to modify it either.
  40. # ---------------------------------------------------------------------------
  41.  
  42. all:
  43.  
  44. install:
  45.     @for i in $(MAN_DIR) $(MANN_DIR) ; \
  46.         do \
  47.         if [ ! -d $$i ] ; then \
  48.         echo "Making directory $$i"; \
  49.         mkdir $$i; \
  50.         chmod 755 $$i; \
  51.         else true; \
  52.         fi; \
  53.         done;
  54.     @cd $(SRC_DIR); for i in *.n; \
  55.         do \
  56.         echo "Installing $$i"; \
  57.         rm -f $(MANN_DIR)/$$i; \
  58.         sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
  59.             $$i > $(MANN_DIR)/$$i; \
  60.         chmod 444 $(MANN_DIR)/$$i; \
  61.         done;
  62.  
  63. Makefile: $(SRC_DIR)/Makefile.in
  64.     $(SHELL) config.status
  65.  
  66. clean:
  67.     rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors
  68.  
  69. distclean: clean
  70.     rm -f Makefile config.status
  71.