home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / git-4.3 / git-4 / git-4.3.7 / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-07-10  |  3.5 KB  |  146 lines

  1.  
  2. ###############################################################################
  3. #                                          #
  4. #          Makefile for GNU Interactive Tools 4.3.7              #
  5. #      Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.          #
  6. #                                          #
  7. ###############################################################################
  8.  
  9.  
  10. #
  11. #   If you make changes in this file in order to compile GIT on a system not
  12. # included in the file PLATFORMS, please send me a patch. My internet address
  13. # is tudor@chang.pub.ro. I'll include it in the next release. Thanks.
  14. #
  15.  
  16. #
  17. # GIT default install directory. You may change this if you want to install
  18. # the GIT package in a different place.
  19. #
  20.  
  21.  
  22. PRODUCT        = "@PRODUCT@"
  23. VERSION        = "@VERSION@"
  24.  
  25.  
  26. srcdir        = @srcdir@
  27. VPATH        = @srcdir@
  28.  
  29. prefix        = @prefix@
  30. bindir        = $(prefix)/bin
  31. libdir        = $(prefix)/lib/git
  32. infodir        = $(prefix)/info
  33. mandir        = $(prefix)/man/man1
  34. termdir        = $(prefix)/lib/git/term
  35.  
  36. SHELL        = /bin/sh
  37. TAR        = tar
  38. GZIP        = gzip
  39. BASENAME    = basename
  40. HOST        = @HOST@
  41. SUBDIRS        = src info man term
  42.  
  43.  
  44. all:
  45.     @(\
  46.         echo "Making $(PRODUCT) $(VERSION)...";\
  47.         echo "Configured for $(HOST)";\
  48.     )
  49.     (cd src && $(MAKE) $@)
  50.  
  51. installdirs:
  52.     for dir in $(SUBDIRS);\
  53.     do\
  54.         (cd $$dir && $(MAKE) $@);\
  55.     done
  56.  
  57. info:    FORCE-info
  58.     @(\
  59.         echo "Making $(PRODUCT) $(VERSION) info documentation...";\
  60.         echo "Configured for $(HOST)";\
  61.     )
  62.     (cd info && $(MAKE) $@)
  63.  
  64. FORCE-info:
  65.  
  66. dvi:
  67.     (cd info && $(MAKE) $@)
  68.  
  69. install:
  70.     @(\
  71.         echo "Installing $(PRODUCT) $(VERSION)...";\
  72.         echo "Configured for $(HOST)";\
  73.     )
  74.     $(MAKE) installdirs &&\
  75.     \
  76.     for dir in $(SUBDIRS);\
  77.     do\
  78.         (cd $$dir && $(MAKE) $@);\
  79.     done
  80.     @(\
  81.         echo ;\
  82.         echo "************************************* HINTS ***********************************";\
  83.         echo "1 - The info/git.dir file should be appended to the file" $(infodir)/dir ".";\
  84.         if test ! -f $(infodir)/dir; then\
  85.         echo "***************  BTW, I can't find your" $(infodir)/dir "file !";\
  86.         fi;\
  87.         \
  88.         echo "2 -" $(bindir) "should be in the PATH in order to run GIT !";\
  89.         echo "3 -" $(mandir) "should be in the MANPATH in order to read the manual pages !";\
  90.         echo "4 - Each user can copy .gitrc.TERM in its home directory to overwrite the";\
  91.         echo "    default configuration file(s).";\
  92.         echo "    The .gitrc.TERM files can be found in " $(termdir) ".";\
  93.         echo "5 - In order to use a local .gitaction script you should copy the .gitaction";\
  94.         echo "    example in the current directory and then modify it.";\
  95.         echo "    The .gitaction example can be found in " $(bindir) ".";\
  96.         echo "*******************************************************************************";\
  97.         echo ;\
  98.         echo "done.";\
  99.     )
  100.  
  101. dep:
  102.     (cd $(srcdir)/src && $(MAKE) $@)
  103.  
  104. distdone:
  105.     cd $(srcdir) && dir=`pwd` && cd ..;\
  106.     $(TAR) cf - `$(BASENAME) $$dir` |\
  107.     $(GZIP) -9c > `$(BASENAME) $$dir`.tar.gz;\
  108.     \
  109.     if test $$? != 0; then\
  110.         exit 1;\
  111.     fi
  112.  
  113. dist:    dep info distclean distdone
  114.  
  115. uninstall:
  116.     @echo "Uninstalling $(PRODUCT) $(VERSION)..."
  117.     for dir in $(SUBDIRS);\
  118.     do\
  119.         (cd $$dir && $(MAKE) $@);\
  120.     done
  121.     @echo "Please remove the GIT entry from the Info dir file."
  122.  
  123. clean:
  124.     rm -f *.o *~ core* tutu* gogu*;\
  125.     \
  126.     for dir in $(SUBDIRS);\
  127.     do\
  128.         (cd $$dir && $(MAKE) $@);\
  129.     done
  130.  
  131. mostlyclean: clean
  132.  
  133. distclean:
  134.     rm -f Makefile config.status config.log config.cache config.h;\
  135.     \
  136.     for dir in $(SUBDIRS);\
  137.     do\
  138.         (cd $$dir && $(MAKE) $@);\
  139.     done
  140.  
  141. realclean: distclean
  142.  
  143. # Tell version [3.59,3.63) of GNU make not to export all variables.
  144. # Otherwise a system limit (for SysV at least) may be exceeded.
  145. .NOEXPORT:
  146.