home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / TCL / BLT / BLT1.7L1 / BLT1 / blt-1.7 / man / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-21  |  875 b   |  37 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # ------------------------------------------------------------------------
  3. #     Makefile for manual page files 
  4. # ------------------------------------------------------------------------
  5.  
  6. MAN_SECT     = 3
  7. MAN_EXT     = 3blt
  8. TOPDIR      = /usr/local
  9. MANDIR      = /usr/local/man
  10. SECT_DIR     = $(MANDIR)/man$(MAN_SECT)
  11. SHELL        = /bin/sh
  12. RM        = rm -rf
  13. srcdir        = .
  14.  
  15. all:
  16.  
  17. install: install-dirs
  18.     @for i in $(srcdir)/*.man ; do \
  19.         file=$(SECT_DIR)/blt_`basename $$i .man`.$(MAN_EXT) ; \
  20.         echo "installing manual $$file" ; \
  21.         rm -f $$file ; \
  22.         sed -e "/man\.macros/r $(srcdir)/man.macros" -e '/man\.macros/d' \
  23.         $$i > $$file ; \
  24.         chmod 444 $$file; \
  25.     done 
  26.  
  27. install-dirs:
  28.     @for i in $(TOPDIR) $(MANDIR) $(SECT_DIR) ; do \
  29.         if test ! -d $$i ; then \
  30.         mkdir $$i ; \
  31.         fi ; \
  32.         done
  33.  
  34. clean:
  35.     $(RM) *\~ "#"*
  36.  
  37.