home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / TCL / BLT / _BLT.TAR / usr / lib / blt / applications / kosherdill / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-02-08  |  1.4 KB  |  58 lines

  1. # ---------------------------------------------------------------------------
  2. #    Makefile for KOSHER DILL - Disk space management utility
  3. # ---------------------------------------------------------------------------
  4.  
  5. BINDIR         = @KOSHERDILL_PROGRAM@
  6. LIBDIR         = @KOSHERDILL_LIBRARY@
  7. WISH         = @BLT_WISH@
  8.  
  9. template     = $(srcdir)/kosherdill.tmpl
  10. script         = kosherdill
  11. INSTALL     = @INSTALL@
  12. INSTALL_DATA     = @INSTALL_DATA@
  13. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  14. SHELL         = /bin/sh
  15. RM         = rm -f
  16. srcdir        = @srcdir@
  17.  
  18. all: kosherdill-build
  19.  
  20. install: kosherdill-install install-dirs install-library install-help
  21.     $(INSTALL_PROGRAM) $(script) $(BINDIR)    
  22.     @echo '== install complete =='
  23.  
  24. kosherdill-build: $(template)
  25.     $(RM) $(script)
  26.     sed -e "s#%install-dir%#`pwd`#" -e "s#%blt-program%#$(WISH)#" \
  27.         $(template) > $(script)
  28.     chmod 755 $(script)
  29.  
  30. kosherdill-install: $(template)
  31.     $(RM) $(script)
  32.     sed -e "s#%install-dir%#$(LIBDIR)#" \
  33.         -e "s#%blt-program%#$(WISH)#" $(template) > $(script)
  34.     chmod 755 $(script)
  35.  
  36. install-help:
  37.     @set -x; for i in $(srcdir)/Help/[A-Z][a-z]* ; do \
  38.         $(INSTALL_DATA) $$i $(LIBDIR)/Help ; \
  39.     done
  40.  
  41. install-library:
  42.     @set -x; for i in $(srcdir)/scripts/*tcl* ; do \
  43.         $(INSTALL_DATA) $$i $(LIBDIR)/scripts ; \
  44.     done
  45.  
  46. install-dirs:
  47.     @for i in $(LIBDIR) $(LIBDIR)/scripts $(LIBDIR)/Help $(BINDIR) ; do \
  48.         if test ! -d $$i ; then \
  49.         mkdir $$i ; \
  50.         fi ; \
  51.     done
  52.  
  53. clean:
  54.     $(RM) $(script) *\~ "#"*    
  55.  
  56. realclean: clean
  57.     $(RM) config.status Makefile
  58.