1
0

Makefile.in 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # Makefile for GNU patch.
  2. # Copyright 1993, 1997 Free Software Foundation, Inc.
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2, or (at your option)
  6. # any later version.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with this program; see the file COPYING.
  13. # If not, write to the Free Software Foundation,
  14. # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. #### Start of system configuration section. ####
  16. srcdir = @srcdir@
  17. VPATH = @srcdir@
  18. @SET_MAKE@
  19. CC = @CC@
  20. ed_PROGRAM = @ed_PROGRAM@
  21. INSTALL = @INSTALL@
  22. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  23. INSTALL_DATA = @INSTALL_DATA@
  24. transform = @program_transform_name@
  25. CFLAGS = @CFLAGS@
  26. CPPFLAGS = @CPPFLAGS@
  27. DEFS = @DEFS@
  28. LDFLAGS = @LDFLAGS@
  29. LIBOBJS = @LIBOBJS@
  30. LIBS = @LIBS@
  31. PACKAGE = @PACKAGE@
  32. VERSION = @VERSION@
  33. prefix = @prefix@
  34. exec_prefix = @exec_prefix@
  35. bindir = $(exec_prefix)/bin
  36. # Where to put the manual pages.
  37. man1dir = $(prefix)/man/man1
  38. # Extension (including `.') for the manual page filenames.
  39. man1ext = .1
  40. # Hook for nonstandard builds.
  41. CONFIG_STATUS = config.status
  42. #### End of system configuration section. ####
  43. SHELL = /bin/sh
  44. LIBSRCS = getopt.c getopt1.c memchr.c rename.c
  45. SRCS = addext.c argmatch.c backupfile.c basename.c inp.c maketime.c \
  46. partime.c patch.c pch.c quotearg.c util.c version.c $(LIBSRCS)
  47. OBJS = addext.o argmatch.o backupfile.o basename.o inp.o maketime.o \
  48. partime.o patch.o pch.o quotearg.o util.o version.o $(LIBOBJS)
  49. HDRS = argmatch.h backupfile.h common.h getopt.h \
  50. inp.h maketime.h partime.h pch.h quotearg.h util.h version.h
  51. MISC = COPYING ChangeLog INSTALL Makefile.in NEWS README \
  52. acconfig.h config.hin configure configure.in \
  53. install-sh mkinstalldirs patch.man
  54. DISTFILES = $(MISC) $(SRCS) $(HDRS)
  55. DISTFILES_PC = pc/chdirsaf.c
  56. DISTFILES_PC_DJGPP = pc/djgpp/README pc/djgpp/config.sed \
  57. pc/djgpp/configure.bat pc/djgpp/configure.sed
  58. patch_name = `echo patch | sed '$(transform)'`
  59. all:: patch
  60. info::
  61. check::
  62. installcheck::
  63. COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) -Ded_PROGRAM=\"$(ed_PROGRAM)\" \
  64. -I. -I$(srcdir) $(CFLAGS)
  65. .c.o:
  66. $(COMPILE) $<
  67. patch: $(OBJS)
  68. $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
  69. install:: all installdirs
  70. $(INSTALL_PROGRAM) patch $(bindir)/$(patch_name)
  71. -$(INSTALL_DATA) $(srcdir)/patch.man $(man1dir)/$(patch_name)$(man1ext)
  72. installdirs::
  73. $(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(man1dir)
  74. install-strip::
  75. $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
  76. uninstall::
  77. rm -f $(bindir)/$(patch_name) $(man1dir)/$(patch_name)$(man1ext)
  78. Makefile: Makefile.in $(CONFIG_STATUS)
  79. $(SHELL) $(CONFIG_STATUS)
  80. config.status: configure
  81. $(SHELL) $(CONFIG_STATUS) --recheck
  82. configure: configure.in
  83. cd $(srcdir) && autoconf
  84. config.hin: configure.in acconfig.h
  85. cd $(srcdir) && rm -f config.hin && autoheader
  86. patchlevel.h: Makefile
  87. echo '#define PATCH_VERSION "$(VERSION)"' >patchlevel.h
  88. TAGS: $(HDRS) patchlevel.h $(SRCS)
  89. etags $(HDRS) patchlevel.h $(SRCS)
  90. clean::
  91. rm -f patch core* *core *.o
  92. mostlyclean:: clean
  93. distclean:: clean
  94. rm -f Makefile config.cache config.log config.status config.h
  95. rm -f patchlevel.h
  96. maintainer-clean::
  97. @echo "This command is intended for maintainers to use;"
  98. @echo "rebuilding the deleted files requires special tools."
  99. $(MAKE) distclean
  100. rm -f TAGS
  101. PV = $(PACKAGE)-$(VERSION)
  102. dist:: $(DISTFILES) $(DISTFILES_PC) $(DISTFILES_PC_DJGPP)
  103. rm -rf $(PV)
  104. mkdir $(PV) $(PV)/pc $(PV)/pc/djgpp
  105. cp -p $(DISTFILES) $(PV)
  106. cp -p $(DISTFILES_PC) $(PV)/pc
  107. cp -p $(DISTFILES_PC_DJGPP) $(PV)/pc/djgpp
  108. tar -chf - $(PV) | gzip -9 >$(PV).tar.gz
  109. rm -rf $(PV)
  110. $(OBJS): config.h
  111. addext.o: backupfile.h
  112. argmatch.o: argmatch.h
  113. backupfile.o: argmatch.h backupfile.h
  114. basename.o: backupfile.h
  115. getopt.o getopt1.o: getopt.h
  116. maketime.o: maketime.h partime.h
  117. inp.o: backupfile.h common.h inp.h pch.h util.h
  118. partime.o: partime.h
  119. patch.o: argmatch.h backupfile.h common.h getopt.h inp.h pch.h util.h version.h
  120. pch.o: common.h inp.h pch.h util.h
  121. quotearg.o: quotearg.h
  122. util.o: backupfile.h common.h maketime.h partime.h quotearg.h util.h version.h
  123. version.o: common.h patchlevel.h util.h version.h