1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openpkg/patch.Makefile.in Tue Jul 31 12:23:42 2012 +0200 1.3 @@ -0,0 +1,402 @@ 1.4 +# Makefile for GNU patch. 1.5 + 1.6 +# Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2009 1.7 +# Free Software Foundation, Inc. 1.8 + 1.9 +# This program is free software; you can redistribute it and/or modify 1.10 +# it under the terms of the GNU General Public License as published by 1.11 +# the Free Software Foundation; either version 2, or (at your option) 1.12 +# any later version. 1.13 + 1.14 +# This program is distributed in the hope that it will be useful, 1.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 1.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.17 +# GNU General Public License for more details. 1.18 + 1.19 +# You should have received a copy of the GNU General Public License 1.20 +# along with this program; see the file COPYING. 1.21 +# If not, write to the Free Software Foundation, 1.22 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 1.23 + 1.24 +#### Start of system configuration section. #### 1.25 + 1.26 +srcdir = @srcdir@ 1.27 +VPATH = @srcdir@ 1.28 + 1.29 +@SET_MAKE@ 1.30 + 1.31 +CC = @CC@ 1.32 +ed_PROGRAM = @ed_PROGRAM@ 1.33 +INSTALL = @INSTALL@ 1.34 +INSTALL_PROGRAM = @INSTALL_PROGRAM@ 1.35 +INSTALL_DATA = @INSTALL_DATA@ 1.36 +TEST_SHELL = @TEST_SHELL@ 1.37 +transform = @program_transform_name@ 1.38 + 1.39 +CFLAGS = @CFLAGS@ 1.40 +CPPFLAGS = @CPPFLAGS@ 1.41 +DEFS = @DEFS@ 1.42 +EXEEXT = @EXEEXT@ 1.43 +LDFLAGS = @LDFLAGS@ 1.44 +LIBOBJDIR = gl/lib/ 1.45 +LIBOBJS = @LIBOBJS@ ${LIBOBJDIR}full-write$U.o 1.46 +LIBS = @LIBS@ 1.47 +OBJEXT = @OBJEXT@ 1.48 +PACKAGE_NAME = @PACKAGE_NAME@ 1.49 +PACKAGE_VERSION = @PACKAGE_VERSION@ 1.50 +STDBOOL_H = @STDBOOL_H@ 1.51 +GETOPT_H = @GETOPT_H@ 1.52 +HAVE__BOOL = @HAVE__BOOL@ 1.53 +ENABLE_MERGE = @ENABLE_MERGE@ 1.54 + 1.55 +prefix = @prefix@ 1.56 +exec_prefix = @exec_prefix@ 1.57 +bindir = @bindir@ 1.58 + 1.59 +# Where to put the manual pages. 1.60 +datarootdir = @datarootdir@ 1.61 +mandir = @mandir@ 1.62 +man1dir = $(mandir)/man1 1.63 +# Extension (including `.') for the manual page filenames. 1.64 +man1ext = .1 1.65 + 1.66 +# Hook for nonstandard builds. 1.67 +CONFIG_STATUS = config.status 1.68 + 1.69 +#### End of system configuration section. #### 1.70 + 1.71 +SHELL = /bin/sh 1.72 + 1.73 +LIBSRCS = \ 1.74 + gl/lib/argmatch.c \ 1.75 + gl/lib/backupfile.c \ 1.76 + gl/lib/basename.c \ 1.77 + gl/lib/dirname.c \ 1.78 + gl/lib/error.c \ 1.79 + gl/lib/exitfail.c \ 1.80 + gl/lib/full-write.c \ 1.81 + gl/lib/getopt1.c \ 1.82 + gl/lib/getopt.c \ 1.83 + gl/lib/hash.c \ 1.84 + gl/lib/malloc.c \ 1.85 + gl/lib/mbrtowc.c \ 1.86 + gl/lib/memchr.c \ 1.87 + gl/lib/quotearg.c \ 1.88 + gl/lib/quote.c \ 1.89 + gl/lib/realloc.c \ 1.90 + gl/lib/rename.c \ 1.91 + gl/lib/safe-read.c \ 1.92 + gl/lib/safe-write.c \ 1.93 + gl/lib/strcasecmp.c \ 1.94 + gl/lib/stripslash.c \ 1.95 + gl/lib/strncasecmp.c \ 1.96 + gl/lib/strndup.c \ 1.97 + gl/lib/xmalloc.c \ 1.98 + gl/lib/xstrndup.c 1.99 + 1.100 +SRCS = $(LIBSRCS) \ 1.101 + src/inp.c \ 1.102 + src/maketime.c \ 1.103 + src/merge.c \ 1.104 + src/partime.c \ 1.105 + src/patch.c \ 1.106 + src/pch.c \ 1.107 + src/quotesys.c \ 1.108 + src/util.c \ 1.109 + src/version.c 1.110 + 1.111 +MERGEOBJ = src/merge.$(OBJEXT) 1.112 + 1.113 +OBJS = $(LIBOBJS) $(MERGEOBJ) \ 1.114 + src/inp.$(OBJEXT) \ 1.115 + src/maketime.$(OBJEXT) \ 1.116 + src/partime.$(OBJEXT) \ 1.117 + src/patch.$(OBJEXT) \ 1.118 + src/pch.$(OBJEXT) \ 1.119 + src/quotesys.$(OBJEXT) \ 1.120 + src/util.$(OBJEXT) \ 1.121 + src/version.$(OBJEXT) 1.122 + 1.123 +LIBHDRS = \ 1.124 + gl/lib/argmatch.h \ 1.125 + gl/lib/backupfile.h \ 1.126 + gl/lib/dirname.h \ 1.127 + gl/lib/error.h \ 1.128 + gl/lib/exitfail.h \ 1.129 + gl/lib/full-write.h \ 1.130 + gl/lib/getopt.hin \ 1.131 + gl/lib/getopt_int.h \ 1.132 + gl/lib/gettext.h \ 1.133 + gl/lib/hash.h \ 1.134 + gl/lib/minmax.h \ 1.135 + gl/lib/quotearg.h \ 1.136 + gl/lib/quote.h \ 1.137 + gl/lib/safe-write.h \ 1.138 + gl/lib/stdbool.hin \ 1.139 + gl/lib/unlocked-io.h \ 1.140 + gl/lib/verify.h \ 1.141 + gl/lib/xalloc.h \ 1.142 + gl/lib/xstrndup.h 1.143 + 1.144 +HDRS = $(LIBHDRS) \ 1.145 + src/bestmatch.h \ 1.146 + src/common.h \ 1.147 + src/diffseq.h \ 1.148 + src/inp.h \ 1.149 + src/maketime.h \ 1.150 + src/partime.h \ 1.151 + src/pch.h \ 1.152 + src/quotesys.h \ 1.153 + src/util.h \ 1.154 + src/version.h 1.155 + 1.156 +MISC = \ 1.157 + AUTHORS \ 1.158 + COPYING \ 1.159 + ChangeLog \ 1.160 + INSTALL \ 1.161 + Makefile.in \ 1.162 + NEWS \ 1.163 + README \ 1.164 + VERSION \ 1.165 + aclocal.m4 \ 1.166 + config.guess\ 1.167 + config.hin \ 1.168 + config.sub \ 1.169 + configure \ 1.170 + configure.ac \ 1.171 + install-sh \ 1.172 + mkinstalldirs \ 1.173 + patch.man \ 1.174 + tests/test-lib.sh \ 1.175 + update-version.sh 1.176 + 1.177 +DISTFILES = $(MISC) $(SRCS) $(HDRS) $(M4FILES) \ 1.178 + pc/chdirsaf.c \ 1.179 + pc/djgpp/config.sed \ 1.180 + pc/djgpp/configure.bat \ 1.181 + pc/djgpp/configure.sed \ 1.182 + pc/djgpp/README 1.183 + 1.184 +MORE_DISTFILES = $(TESTS) $(BROKEN_TESTS) 1.185 + 1.186 +patch_name = `echo patch | sed '$(transform)'` 1.187 + 1.188 +all:: src/patch$(EXEEXT) 1.189 + 1.190 +info:: 1.191 +installcheck:: 1.192 + 1.193 +TESTS = \ 1.194 + tests/asymmetric-hunks \ 1.195 + tests/backup-prefix-suffix \ 1.196 + tests/corrupt-reject-files \ 1.197 + tests/create-delete \ 1.198 + tests/crlf-handling \ 1.199 + tests/filename-choice \ 1.200 + tests/global-reject-files \ 1.201 + tests/inname \ 1.202 + tests/line-numbers \ 1.203 + tests/merge \ 1.204 + tests/munged-context-format \ 1.205 + tests/need-filename \ 1.206 + tests/no-newline-triggers-assert \ 1.207 + tests/preserve-c-function-names \ 1.208 + tests/preserve-mode-and-timestamp \ 1.209 + tests/reject-format \ 1.210 + tests/remember-backup-files \ 1.211 + tests/remember-reject-files \ 1.212 + tests/unmodified-files 1.213 + 1.214 +BROKEN_TESTS = \ 1.215 + tests/dash-o-append 1.216 + 1.217 +check:: $(TESTS) 1.218 + @echo All tests succeeded! 1.219 + 1.220 +.PHONY: $(TESTS) $(BROKEN_TESTS) 1.221 +$(TESTS) $(BROKEN_TESTS): all 1.222 + @echo "[$@]" 1.223 + @srcdir=$(srcdir)/tests $(TEST_SHELL) $(srcdir)/$@ 1.224 + 1.225 +DEFINE_ENABLE_MERGE = -DENABLE_MERGE 1.226 +COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) -Ded_PROGRAM=\"$(ed_PROGRAM)\" \ 1.227 + $(DEFINE_ENABLE_MERGE) -I. -I$(srcdir)/src -I$(srcdir)/gl/lib $(CFLAGS) 1.228 + 1.229 +.c.$(OBJEXT): 1.230 + @mkdir -p $(@D) 1.231 + $(COMPILE) -o $@ $< 1.232 + 1.233 +src/patch$(EXEEXT): $(OBJS) 1.234 + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) 1.235 + 1.236 +install:: all 1.237 + $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) 1.238 + $(INSTALL_PROGRAM) src/patch$(EXEEXT) $(DESTDIR)$(bindir)/$(patch_name)$(EXEEXT) 1.239 + $(INSTALL_DATA) $(srcdir)/patch.man $(DESTDIR)$(man1dir)/$(patch_name)$(man1ext) 1.240 + 1.241 +install-strip:: 1.242 + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install 1.243 + 1.244 +uninstall:: 1.245 + rm -f $(DESTDIR)$(bindir)/$(patch_name)$(EXEEXT) \ 1.246 + $(DESTDIR)$(man1dir)/$(patch_name)$(man1ext) 1.247 + 1.248 +Makefile: Makefile.in $(CONFIG_STATUS) 1.249 + $(SHELL) $(CONFIG_STATUS) 1.250 +FORCE: 1.251 +VERSION: FORCE 1.252 + @cd $(srcdir) && $(SHELL) ./update-version.sh VERSION 1.253 +config.status: configure 1.254 + $(SHELL) $(CONFIG_STATUS) --recheck 1.255 +configure: configure.ac $(srcdir)/aclocal.m4 $(srcdir)/VERSION 1.256 + cd $(srcdir) && autoconf --force 1.257 +config.hin: configure.ac $(srcdir)/aclocal.m4 1.258 + cd $(srcdir) && autoheader --force 1.259 + 1.260 +# We need the following in order to create <getopt.h> when the system 1.261 +# doesn't have one that works with the given compiler. 1.262 +getopt.h: gl/lib/getopt.hin 1.263 + rm -f $@-t $@ 1.264 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 1.265 + cat $(srcdir)/gl/lib/getopt.hin; \ 1.266 + } > $@-t 1.267 + mv -f $@-t $@ 1.268 + 1.269 +# We need the following in order to create <stdbool.h> when the system 1.270 +# doesn't have one that works. 1.271 +#gl/lib/stdbool.h: gl/lib/stdbool.hin 1.272 +stdbool.h: gl/lib/stdbool.hin 1.273 + rm -f $@-t $@ 1.274 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 1.275 + sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ 1.276 + < $(srcdir)/gl/lib/stdbool.hin; \ 1.277 + } > $@-t 1.278 + mv $@-t $@ 1.279 + 1.280 +LIBM4FILES = \ 1.281 + gl/m4/argmatch.m4 \ 1.282 + gl/m4/backupfile.m4 \ 1.283 + gl/m4/d-ino.m4 \ 1.284 + gl/m4/dirname.m4 \ 1.285 + gl/m4/dos.m4 \ 1.286 + gl/m4/double-slash-root.m4 \ 1.287 + gl/m4/error.m4 \ 1.288 + gl/m4/exitfail.m4 \ 1.289 + gl/m4/extensions.m4 \ 1.290 + gl/m4/getopt.m4 \ 1.291 + gl/m4/gettext.m4 \ 1.292 + gl/m4/hash.m4 \ 1.293 + gl/m4/inline.m4 \ 1.294 + gl/m4/malloc.m4 \ 1.295 + gl/m4/mbrtowc.m4 \ 1.296 + gl/m4/mbstate_t.m4 \ 1.297 + gl/m4/memchr.m4 \ 1.298 + gl/m4/minmax.m4 \ 1.299 + gl/m4/onceonly.m4 \ 1.300 + gl/m4/quotearg.m4 \ 1.301 + gl/m4/quote.m4 \ 1.302 + gl/m4/realloc.m4 \ 1.303 + gl/m4/rename.m4 \ 1.304 + gl/m4/safe-write.m4 \ 1.305 + gl/m4/ssize_t.m4 \ 1.306 + gl/m4/stdbool.m4 \ 1.307 + gl/m4/strcase.m4 \ 1.308 + gl/m4/strndup.m4 \ 1.309 + gl/m4/unlocked-io.m4 \ 1.310 + gl/m4/utimbuf.m4 \ 1.311 + gl/m4/xalloc.m4 \ 1.312 + gl/m4/xstrndup.m4 1.313 + 1.314 +M4FILES = $(LIBM4FILES) \ 1.315 + m4/mkdir.m4 \ 1.316 + m4/setmode.m4 1.317 + 1.318 +$(srcdir)/aclocal.m4: $(M4FILES) 1.319 + aclocal -I m4 -I gl/m4 1.320 + 1.321 +TAGS: $(HDRS) $(SRCS) 1.322 + etags $(HDRS) $(SRCS) 1.323 + 1.324 +mostlyclean:: 1.325 + rm -f core* *core src/*.$(OBJEXT) gl/lib/*.$(OBJEXT) \ 1.326 + stdbool.h getopt.h gl/lib/*.h-t 1.327 + 1.328 +clean:: mostlyclean 1.329 + rm -f src/patch$(EXEEXT) 1.330 + 1.331 +distclean:: clean 1.332 + rm -f Makefile config.cache config.hin~ config.log config.status \ 1.333 + config.h 1.334 + rm -rf autom4te.cache/ 1.335 + 1.336 +maintainer-clean:: 1.337 + @echo "This command is intended for maintainers to use;" 1.338 + @echo "rebuilding the deleted files requires special tools." 1.339 + $(MAKE) distclean 1.340 + rm -f TAGS VERSION aclocal.m4 config.hin configure \ 1.341 + patch-*.tar.gz patch-*.tar.gz.sig 1.342 + 1.343 +PV = $(PACKAGE_NAME)-$(PACKAGE_VERSION) 1.344 + 1.345 +dist:: $(DISTFILES) 1.346 + @rm -rf $(PV) 1.347 + @ln -s . $(PV) 1.348 + @tar -cf - `( printf "%s\n" $(DISTFILES) $(MORE_DISTFILES); \ 1.349 + grep -q -E -- '-[0-9]+-[0-9a-z]+(-dirty)?$$' VERSION \ 1.350 + && echo README-alpha \ 1.351 + ) | sed -e 's,^$(srcdir)/,,' -e "s,^,$(PV)/," \ 1.352 + | LC_ALL=C sort` \ 1.353 + | gzip -9 > $(PV).tar.gz 1.354 + @if which bzip2 >/dev/null 2>/dev/null; then \ 1.355 + gzip -d < $(PV).tar.gz | bzip2 -9 > $(PV).tar.bz2; fi 1.356 + @if which xz >/dev/null 2>/dev/null; then \ 1.357 + gzip -d < $(PV).tar.gz | xz -9 > $(PV).tar.xz; fi 1.358 + @rm -rf $(PV) 1.359 + @whereto=$$(if grep -q -E -- '-[0-9]+-[0-9a-z]+(-dirty)?$$' VERSION; \ 1.360 + then echo alpha; else echo ftp; fi); \ 1.361 + echo; \ 1.362 + echo "# gnupload --to $$whereto.gnu.org:patch $(PV).tar.gz"; \ 1.363 + test ! -e $(PV).tar.bz2 || echo "# gnupload" \ 1.364 + "--to $$whereto.gnu.org:patch $(PV).tar.bz2"; \ 1.365 + test ! -e $(PV).tar.xz || echo "# gnupload" \ 1.366 + "--to $$whereto.gnu.org:patch $(PV).tar.xz"; \ 1.367 + echo 1.368 + 1.369 +$(OBJS): config.h 1.370 +COMMON = src/common.h $(STDBOOL_H) 1.371 + 1.372 +gl/lib/addext.$(OBJEXT): gl/lib/backupfile.h gl/lib/dirname.h 1.373 +gl/lib/argmatch.$(OBJEXT): $(STDBOOL_H) gl/lib/argmatch.h gl/lib/gettext.h \ 1.374 + gl/lib/error.h gl/lib/quote.h gl/lib/quotearg.h gl/lib/unlocked-io.h 1.375 +gl/lib/backupfile.$(OBJEXT): gl/lib/argmatch.h gl/lib/backupfile.h \ 1.376 + gl/lib/dirname.h 1.377 +gl/lib/basename.$(OBJEXT): gl/lib/dirname.h 1.378 +gl/lib/dirname.$(OBJEXT): gl/lib/dirname.h gl/lib/xalloc.h 1.379 +gl/lib/error.$(OBJEXT): gl/lib/error.h gl/lib/gettext.h gl/lib/unlocked-io.h 1.380 +gl/lib/exitfail.$(OBJEXT): gl/lib/exitfail.h 1.381 +gl/lib/full-write.$(OBJEXT): gl/lib/full-write.h gl/lib/safe-write.h 1.382 +gl/lib/getopt.$(OBJEXT) gl/lib/getopt1.$(OBJEXT): getopt.h 1.383 +gl/lib/hash.$(OBJEXT): $(STDBOOL_H) gl/lib/hash.h 1.384 +gl/lib/safe-read.$(OBJEXT): gl/lib/safe-write.h 1.385 +gl/lib/safe-write.$(OBJEXT): gl/lib/safe-read.c 1.386 + 1.387 +src/inp.$(OBJEXT): gl/lib/backupfile.h $(COMMON) src/inp.h src/pch.h \ 1.388 + gl/lib/quotearg.h src/util.h gl/lib/xalloc.h 1.389 +src/maketime.$(OBJEXT): src/maketime.h src/partime.h 1.390 +src/partime.$(OBJEXT): src/partime.h 1.391 +src/patch.$(OBJEXT): gl/lib/argmatch.h gl/lib/backupfile.h $(COMMON) \ 1.392 + gl/lib/exitfail.h $(GETOPT_H) src/inp.h src/pch.h \ 1.393 + gl/lib/quotearg.h src/util.h src/version.h gl/lib/xalloc.h 1.394 +src/pch.$(OBJEXT): gl/lib/backupfile.h $(COMMON) gl/lib/dirname.h src/inp.h \ 1.395 + src/pch.h gl/lib/quotearg.h src/util.h 1.396 +gl/lib/quote.$(OBJECT): gl/lib/quote.h gl/lib/quotearg.h 1.397 +gl/lib/quotearg.$(OBJEXT): gl/lib/gettext.h gl/lib/quotearg.h gl/lib/xalloc.h 1.398 +src/quotesys.$(OBJEXT): src/quotesys.h 1.399 +gl/lib/strncasecmp.$(OBJEXT): gl/lib/strcasecmp.c 1.400 +src/util.$(OBJEXT): gl/lib/backupfile.h $(COMMON) gl/lib/dirname.h gl/lib/full-write.h \ 1.401 + gl/lib/hash.h src/maketime.h src/partime.h gl/lib/quotearg.h \ 1.402 + src/quotesys.h src/util.h src/version.h gl/lib/xalloc.h 1.403 +src/version.$(OBJEXT): $(COMMON) src/version.h 1.404 +gl/lib/xmalloc.$(OBJEXT): gl/lib/error.h gl/lib/exitfail.h gl/lib/gettext.h \ 1.405 + gl/lib/xalloc.h