home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / Makefile.in < prev    next >
Makefile  |  1996-08-21  |  5KB  |  158 lines

  1. #
  2. # $Header: /usr/local/rcs/ForUtil/toplevel/RCS/Makefile.in,v 1.1 1996/08/07 21:09:24 koen Exp koen $
  3. #
  4. # ForUtil toplevel Makefile.in for directory with subdirs to build
  5. #
  6. # (C)Copyright 1995-1996 Ripley Software Development
  7. # All Rights Reserved
  8. #
  9. # This file is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  22.  
  23. VERSION = 0.62
  24.  
  25. CC= @CC@ 
  26. RM= rm -f
  27. SHELL= /bin/sh
  28.  
  29. # If you do not want to build commons, remove commons from the line below.
  30. # Likewise if you do not want fflow, ftags or ffscan.
  31. # do _not_ remove lib from this line, it's used by all programs.
  32. #
  33. SUBDIRS = lib commons ffscan fflow ftags
  34.  
  35. # You can override CFLAGS on the command line to use whatever flags your
  36. # compiler needs
  37. CFLAGS= -g
  38.  
  39. # Ditto for LDFLAGS
  40. LDFLAGS=
  41.  
  42. # Use this if you need additional defines to compile the source
  43. # HPUX might need -D_HPUX_SOURCE and -D_POSIX_SOURCE
  44. # SunOs might need -D_POSIX_SOURCE
  45. CPPFLAGS=
  46.  
  47. # Ditto for additional includes and libs
  48. INCLUDES=
  49. LOADLIBES=
  50.  
  51. #
  52. # Installation program, paths and flags
  53. install=@INSTALL@
  54.  
  55. srcdir = @srcdir@
  56. prefix = @prefix@
  57. exec_prefix = $(prefix)
  58. bindir = $(exec_prefix)/bin
  59. mandir = $(prefix)/man
  60. man1dir = $(mandir)/man1
  61. cat1dir = $(mandir)/cat1
  62.  
  63. maninst_flags= -c -m 444
  64. bininst_flags= -c -m 755 
  65.  
  66. ### End of User configurable section ###
  67.  
  68. pass_flags = SHELL='$(SHELL)' \
  69.     CFLAGS='$(CFLAGS)' \
  70.     CPPFLAGS='$(CPPFLAGS)' \
  71.     INCLUDES='$(INCLUDES)' \
  72.     LOADLIBES='$(LOADLIBES)' \
  73.     LDFLAGS='$(LDFLAGS)' 
  74.  
  75. inst_flags = bindir='$(bindir)' \
  76.     install_opts='$(bininst_flags)'
  77.  
  78. #### Start of possible targets
  79.  
  80. all::
  81.     @( for dir in $(SUBDIRS) ; do \
  82.         (set -x ; cd $$dir ; $(MAKE) $(pass_flags)) ; \
  83.     done)
  84.  
  85. depend:: 
  86.     @( for dir in $(SUBDIRS) ; do \
  87.         (set -x ; cd $$dir ; $(MAKE) depend $(pass_flags)) ; \
  88.     done)
  89.  
  90. install::
  91.     @( for dir in $(SUBDIRS) ; do \
  92.         (set -x;cd $$dir;$(MAKE) install $(pass_flags) $(inst_flags)) ; \
  93.     done)
  94.  
  95. uninstall::
  96.     @( for dir in $(SUBDIRS) ; do \
  97.         (set -x;cd $$dir;$(MAKE) uninstall $(pass_flags) $(inst_flags)) ; \
  98.     done)
  99.  
  100. # Install preformatted man pages in man/cat1
  101. install.cat::
  102.     $(install) $(maninst_flags) man/preformat/fflow.1 $(cat1dir)
  103.     $(install) $(maninst_flags) man/preformat/ffscan.1 $(cat1dir)
  104.     $(install) $(maninst_flags) man/preformat/ftags.1 $(cat1dir)
  105.     $(install) $(maninst_flags) man/preformat/get_common.1 $(cat1dir)
  106.     $(install) $(maninst_flags) man/preformat/list_commons.1 $(cat1dir)
  107.     $(install) $(maninst_flags) man/preformat/scan_commons.1 $(cat1dir)
  108.  
  109. # Install raw (groff source) man pages in man/man1
  110. install.man::
  111.     $(install) $(maninst_flags) man/man/fflow.1 $(man1dir)
  112.     $(install) $(maninst_flags) man/man/ffscan.1 $(man1dir)
  113.     $(install) $(maninst_flags) man/man/ftags.1 $(man1dir)
  114.     $(install) $(maninst_flags) man/man/get_common.1 $(man1dir)
  115.     $(install) $(maninst_flags) man/man/list_commons.1 $(man1dir)
  116.     $(install) $(maninst_flags) man/man/scan_commons.1 $(man1dir)
  117.  
  118. install.all: install install.man install.cat
  119. .PHONY: install.all
  120.  
  121. # Remove (possible compressed) pages in man/cat1 directory
  122. uninstall.cat::
  123.     $(RM) $(cat1dir)/fflow.1*
  124.     $(RM) $(cat1dir)/ffscan.1*
  125.     $(RM) $(cat1dir)/ftags.1*
  126.     $(RM) $(cat1dir)/get_common.1*
  127.     $(RM) $(cat1dir)/list_commons.1*
  128.     $(RM) $(cat1dir)/scan_commons.1*
  129.  
  130. # Remove (possible compressed) pages in man/man1 directory
  131. uninstall.man::
  132.     $(RM) $(man1dir)/fflow.1*
  133.     $(RM) $(man1dir)/ffscan.1*
  134.     $(RM) $(man1dir)/ftags.1*
  135.     $(RM) $(man1dir)/get_common.1*
  136.     $(RM) $(man1dir)/list_commons.1*
  137.     $(RM) $(man1dir)/scan_commons.1*
  138.  
  139. uninstall.all: uninstall uninstall.man uninstall.cat
  140. .PHONY: uninstall.all
  141.  
  142. mostlyclean:: 
  143.     @( for dir in $(SUBDIRS) ; do \
  144.         (set -x ; cd $$dir ; $(MAKE) mostlyclean $(pass_flags) ) ; \
  145.     done)
  146.  
  147. clean:: 
  148.     @( for dir in $(SUBDIRS) ; do \
  149.         (set -x ; cd $$dir ; $(MAKE) clean $(pass_flags) ) ; \
  150.     done)
  151.  
  152. distclean:: clean
  153.     @( for dir in $(SUBDIRS) ; do \
  154.         (set -x ; cd $$dir ; $(MAKE) distclean $(pass_flags) ) ; \
  155.     done)
  156.     $(RM) config.status Makefile autoconf.h config.cache config.log
  157.     $(RM) *.bak *.out core a.out
  158.