home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ecc-1.2.1-src.tgz / tar.out / fsf / ecc / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  124 lines

  1. # Makefile for ECC.    -*- Indented-Text -*-
  2. # Copyright (C) 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. CC = @CC@
  24.  
  25. INSTALL = @INSTALL@
  26. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  27. INSTALL_DATA = @INSTALL_DATA@
  28.  
  29. DEFS = @DEFS@
  30. LIBS = @LIBS@
  31.  
  32. CFLAGS = -O
  33. LDFLAGS = -O
  34.  
  35. CHARSET = @CHARSET@
  36.  
  37. prefix = /ade
  38. exec_prefix = $(prefix)
  39.  
  40. bindir = $(exec_prefix)/bin
  41. datadir = $(prefix)/lib
  42. libdir = $(prefix)/lib
  43. infodir = $(prefix)/info
  44. guidedir = $(prefix)/guide
  45.  
  46. # Where to install the manual pages.
  47. mandir = $(prefix)/man/man1
  48. # Extension (not including `.') for the installed manual page filenames.
  49. manext = 1
  50.  
  51. #### End of system configuration section. ####
  52.  
  53. SHELL = /bin/sh
  54.  
  55. LOADLIBES = $(LIBS)
  56.  
  57. DISTFILES = COPYING Makefile.in configure configure.in ecc.1 ecc.c ecc.h \
  58.             gf.h gflib.c rslib.c version.c
  59.  
  60. .c.o:
  61.     $(CC) -c -I. -I$(srcdir) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
  62.  
  63. all: ecc
  64.  
  65. ### targets required by GNU Coding standards ###
  66.  
  67. Makefile: Makefile.in config.status
  68.     ./config.status
  69.  
  70. config.status: configure
  71.     $(srcdir)/configure --srcdir=$(srcdir) --no-create
  72.  
  73. configure: configure.in
  74.     cd $(srcdir); autoconf
  75.  
  76. TAGS:
  77.     cd $(srcdir); etags
  78.  
  79. clean:
  80.     rm -f *.o core a.out ecc
  81.  
  82. mostlyclean: clean
  83.  
  84. distclean: clean
  85.     rm -f Makefile config.status
  86.  
  87. realclean: distclean
  88.     rm -f TAGS
  89.  
  90. dist: $(DISTFILES)
  91.     echo ecc-`sed -e '/version/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
  92.     rm -rf `cat .fname`
  93.     mkdir `cat .fname`
  94.     ln $(DISTFILES) `cat .fname`
  95.     tar chZf `cat .fname`.tar.Z `cat .fname`
  96.     rm -rf `cat .fname` .fname
  97.  
  98. install: all
  99.     -umask 002; mkdir $(bindir) $(mandir)
  100.     $(INSTALL_PROGRAM) ecc $(bindir)/ecc
  101.     -$(INSTALL_DATA) $(srcdir)/ecc.1 $(mandir)/ecc.$(manext)
  102.  
  103. uninstall: force
  104.     -cd $(bindir); rm -f ecc
  105.     -cd $(mandir); rm -f ecc.$(manext)
  106.  
  107. ### ecc-specific building targets ###
  108.  
  109. ecc.info: ecc.texi
  110.     cd $(srcdir); makeinfo ecc.texi
  111.  
  112. ecc.guide: ecc.texi
  113.     cd $(srcdir); makeinfo --no-split --amiga ecc.texi -o $@
  114.  
  115. ecc.dvi: ecc.texi
  116.     cd $(srcdir); texi2dvi ecc.texi
  117.  
  118. ecc: ecc.o version.o rslib.o gflib.o
  119.  
  120. force:
  121.  
  122. # Prevent GNU make v3 from overflowing arg limit on SysV.
  123. .NOEXPORT:
  124.