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

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