home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / indent-1.9.1-src.lha / src / build / indent-1.9.1 / makefile < prev   
Makefile  |  1994-02-23  |  5KB  |  187 lines

  1. # Generated automatically from makefile.in by configure.
  2. # Makefile template for GNU indent
  3. # Copyright (C) 1994, Joseph Arceneaux.  All rights reserved
  4. # Copyright (C) 1992, Free Software Foundation, Inc.
  5. #
  6. # This file is part of GNU indent.
  7. #
  8. # GNU indent is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. # GNU indent is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU indent; see the file COPYING.  If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = /ISO/indent/indent-1.9.1-amiga
  23. VPATH = /ISO/indent/indent-1.9.1-amiga
  24.  
  25. CC = gcc
  26.  
  27. INSTALL = /bin/install -c
  28. INSTALL_PROGRAM = $(INSTALL)
  29. INSTALL_DATA = $(INSTALL) -m 644
  30.  
  31. AWK = awk
  32. MAKEINFO = makeinfo
  33.  
  34. # Used in making distributions.  GNU now uses the utility `gzip'
  35. # form compaction.
  36. TAR = tar
  37. ZIP = gzip
  38.  
  39. DVITOGHOSTSCRIPT = dvi2ps indent.dvi > indent.ps
  40. CTAGS = etags
  41.  
  42. CFLAGS = -O2
  43. LDFLAGS =
  44.  
  45. # C compiler -D options.
  46. DEFS =  -DHAVE_UNISTD_H=1 -DDIRENT=1
  47.  
  48. # Where to install indent and its documentation.
  49. prefix = /gnu
  50. exec_prefix = ${prefix}
  51. bindir = $(exec_prefix)/bin
  52. infodir = ${prefix}/info
  53.  
  54. #### End of system configuration section. ####
  55.  
  56. SHELL =   /bin/sh
  57. SRC =      indent.c io.c lexi.c parse.c comments.c args.c globs.c \
  58.       backup.c memcpy.c
  59. OBJ =      indent.o io.o lexi.o parse.o comments.o args.o globs.o \
  60.       backup.o 
  61. HEADERS = indent.h sys.h version.h backup.h
  62. MAN =      indent.texinfo texinfo.tex
  63. NOTES =   ChangeLog OChangeLog Projects COPYING
  64. VMSFILES= VMS-README gnuc-make.com vaxc-make.com
  65.  
  66. CONFIG = configure.in configure CONF-README
  67.  
  68. MANJUNK = indent.dvi indent.cp indent.cps indent.aux indent.dlog \
  69. indent.fn indent.fns indent.ky indent.kys indent.log indent.pg   \
  70. indent.pgs indent.toc indent.tp indent.tps indent.vr indent.vrs indent.ps 
  71.  
  72. # What to put in a distribution
  73. TARFILES = ${SRC} Makefile makefile.in ${MAN} indent.info ${HEADERS} \
  74. ${NOTES} indent.gperf ${CONFIG} indent.1 ${VMSFILES} NEWS README
  75.  
  76.  
  77. # Make the program and documentation
  78. #
  79. all: indent indent.info
  80.  
  81. indent: ${OBJ}
  82.     ${CC} -o indent ${LDFLAGS} ${OBJ}
  83.  
  84. .c.o:
  85.     ${CC} -c ${DEFS} ${CPPFLAGS} ${CFLAGS} $<
  86.  
  87.  
  88. backup.o: backup.c backup.h sys.h makefile
  89. globs.o: globs.c sys.h makefile
  90.  
  91. indent.o: indent.c indent.h sys.h makefile
  92. args.o: args.c version.h indent.h sys.h makefile
  93. io.o: io.c indent.h sys.h makefile
  94. lexi.o: lexi.c indent.h sys.h makefile
  95. parse.o: parse.c indent.h sys.h makefile
  96. comments.o: comments.c indent.h sys.h makefile
  97. memcpy.o: memcpy.c indent.h sys.h makefile
  98.  
  99.  
  100. # Build tag tables
  101. tags: ${SRC}
  102.     ${CTAGS} -t ${SRC} ${HEADERS}
  103. TAGS: tags
  104.  
  105.  
  106.  
  107. # Documents
  108. #
  109. indent.ps: indent.dvi
  110.     ${DVITOGHOSTSCRIPT}
  111.  
  112. indent.dvi: indent.toc
  113.     tex ${srcdir}/indent.texinfo
  114.  
  115. indent.toc: ${MAN}
  116.     tex ${srcdir}/indent.texinfo
  117.  
  118. indent.info: ${MAN}
  119.     ${MAKEINFO} ${srcdir}/indent.texinfo
  120.  
  121.  
  122.  
  123. # Installation of indent
  124. #
  125. install: all
  126.     ${INSTALL_PROGRAM} indent ${bindir}/indent
  127.     ${INSTALL_DATA} ${srcdir}/indent.info ${infodir}/indent.info
  128.  
  129.  
  130. # Cleaning up
  131. #
  132.  
  133. # Delete all files generated by building indent or making the manual
  134. clean: mostlyclean
  135.     rm -f ${MANJUNK}
  136.  
  137. # Delete all files created by configuring or building indent
  138. distclean: clean
  139.     rm -f makefile indent-*.tar* config.status
  140.     rm -rf indent-*
  141.  
  142. # Clean up the .o files, leaving the man stuff
  143. mostlyclean:
  144.     rm -f ${OBJ} indent
  145.  
  146. # Clean up tar files, indent-generated backup files, and indent
  147. # subdirectories
  148. realclean: distclean
  149.     rm -f indent.info TAGS core
  150.  
  151.  
  152.  
  153. # Create a distribution file
  154. #
  155. DISTDIR = indent-${VERSION}
  156. TARFILE = indent-${VERSION}.tar
  157. DISTFILE = ${TARFILE}.gz
  158. AWKVERSION = ${AWK} '/define VERSION_STRING/ {printf "%s", \
  159.                      substr($$NF, 1, length($$NF) - 1)}' version.h
  160.  
  161.  
  162. dist: ${TARFILES}
  163.     @export VERSION ; VERSION=`${AWKVERSION}` ; \
  164.     ${MAKE} tarfile
  165. #    @unset VERSION
  166.  
  167. tar: dist
  168.  
  169. # NOTE: GNU tar has a compress option, -z, which used to be used below.
  170. # However, GNU is now using `gzip' as it's compaction utility, and this
  171. # function has not yet been integrated into GNU `tar'.
  172. #    tar -c -h -f ${TARFILE} ${DISTDIR}
  173. #    compress ${TARFILE}
  174. tarfile:
  175.     @echo Making compressed tar file, indent ${VERSION}
  176.     @echo
  177.     @rm -rf ${DISTDIR}
  178.     @rm -f ${DISTFILE}
  179.     @mkdir ${DISTDIR}
  180.     @cd ${DISTDIR} ; for i in ${TARFILES}  ; do ln -s ../$$i . ; done
  181.     @${TAR} -c -v -h -f ${TARFILE} ${DISTDIR}
  182.     ${ZIP} --verbose --best ${TARFILE}
  183.     @rm -rf ${DISTDIR}
  184.  
  185.