home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / indnt16b / makefile.st < prev    next >
Makefile  |  1993-10-23  |  5KB  |  182 lines

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