| 1 | # -*-Makefile-*- template for DJGPP
|
|---|
| 2 | # Makefile.in generated automatically by automake 1.2 from Makefile.am
|
|---|
| 3 |
|
|---|
| 4 | # Copyright (C) 1994, 1995-1998, 1999, 2002 Free Software Foundation, Inc.
|
|---|
| 5 | # This Makefile.DOS is free software; the Free Software Foundation
|
|---|
| 6 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | SHELL = /bin/sh
|
|---|
| 10 |
|
|---|
| 11 | srcdir = .
|
|---|
| 12 | VPATH = $(srcdir)
|
|---|
| 13 | # $DJDIR is defined automatically by DJGPP to point
|
|---|
| 14 | # to the root of the DJGPP installation tree.
|
|---|
| 15 | prefix = /dev/env/DJDIR
|
|---|
| 16 | exec_prefix = ${prefix}
|
|---|
| 17 |
|
|---|
| 18 | bindir = /bin
|
|---|
| 19 | datadir = /share
|
|---|
| 20 | libdir = /lib
|
|---|
| 21 | infodir = /info
|
|---|
| 22 | mandir = /man
|
|---|
| 23 | includedir = /include
|
|---|
| 24 | oldincludedir = c:/djgpp/include
|
|---|
| 25 |
|
|---|
| 26 | DESTDIR = /dev/env/DJDIR
|
|---|
| 27 |
|
|---|
| 28 | pkgdatadir = $(datadir)/make
|
|---|
| 29 | pkglibdir = $(libdir)/make
|
|---|
| 30 | pkgincludedir = $(includedir)/make
|
|---|
| 31 | localedir = $(datadir)/locale
|
|---|
| 32 |
|
|---|
| 33 | INSTALL = ${exec_prefix}/bin/ginstall -c
|
|---|
| 34 | INSTALL_PROGRAM = ${exec_prefix}/bin/ginstall -c
|
|---|
| 35 | INSTALL_DATA = ${exec_prefix}/bin/ginstall -c -m 644
|
|---|
| 36 | INSTALL_SCRIPT = ${exec_prefix}/bin/ginstall -c
|
|---|
| 37 | transform = s,x,x,
|
|---|
| 38 |
|
|---|
| 39 | # This will fail even if they don't have a Unix-like shell (stock DOS
|
|---|
| 40 | # shell doesn't know about `false'). The only difference is that they
|
|---|
| 41 | # get "Error -1" instead of "Error 1".
|
|---|
| 42 | EXIT_FAIL = false
|
|---|
| 43 |
|
|---|
| 44 | NORMAL_INSTALL = :
|
|---|
| 45 | PRE_INSTALL = :
|
|---|
| 46 | POST_INSTALL = :
|
|---|
| 47 | NORMAL_UNINSTALL = :
|
|---|
| 48 | PRE_UNINSTALL = :
|
|---|
| 49 | POST_UNINSTALL = :
|
|---|
| 50 | EXEEXT = .exe
|
|---|
| 51 | OBJEXT = o
|
|---|
| 52 |
|
|---|
| 53 | AR = ar
|
|---|
| 54 | AWK = gawk
|
|---|
| 55 | CC = gcc
|
|---|
| 56 | CPP = gcc -E
|
|---|
| 57 | LIBOBJS =
|
|---|
| 58 | MAKEINFO = ${exec_prefix}/bin/makeinfo
|
|---|
| 59 | PACKAGE = make
|
|---|
| 60 | PERL = perl
|
|---|
| 61 | RANLIB = ranlib
|
|---|
| 62 | REMOTE = stub
|
|---|
| 63 | VERSION = 3.81beta1
|
|---|
| 64 |
|
|---|
| 65 | AUTOMAKE_OPTIONS = 1.2
|
|---|
| 66 |
|
|---|
| 67 | bin_PROGRAMS = make$(EXEEXT)
|
|---|
| 68 |
|
|---|
| 69 | make_SOURCES = ar.c arscan.c commands.c default.c dir.c expand.c file.c function.c getopt.c getopt1.c implicit.c job.c main.c misc.c read.c remake.c rule.c signame.c variable.c version.c vpath.c hash.c remote-$(REMOTE).c
|
|---|
| 70 | # This should include the glob/ prefix
|
|---|
| 71 | libglob_a_SOURCES = glob/fnmatch.c glob/glob.c glob/fnmatch.h glob/glob.h
|
|---|
| 72 | make_LDADD = glob/libglob.a
|
|---|
| 73 |
|
|---|
| 74 | info_TEXINFOS = make.texinfo
|
|---|
| 75 | man_MANS = make.1
|
|---|
| 76 |
|
|---|
| 77 | INCLUDES = -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\" -DLOCALEDIR=\"$(localedir)\"
|
|---|
| 78 |
|
|---|
| 79 | BUILT_SOURCES = README build.sh-in
|
|---|
| 80 |
|
|---|
| 81 | EXTRA_DIST = $(BUILT_SOURCES) $(man_MANS) README.customs remote-cstms.c make-stds.texi texinfo.tex SCOPTIONS SMakefile Makefile.ami README.Amiga config.ami amiga.c amiga.h NMakefile README.DOS configh.dos configure.bat makefile.com README.W32 build_w32.bat config.h-W32 subproc.bat make.lnk config.h-vms makefile.vms readme.vms vmsdir.h vmsfunctions.c vmsify.c
|
|---|
| 82 |
|
|---|
| 83 | SUBDIRS = glob
|
|---|
| 84 | mkinstalldirs = ${exec_prefix}/bin/gmkdir -p
|
|---|
| 85 | CONFIG_HEADER = config.h
|
|---|
| 86 | CONFIG_CLEAN_FILES = build.sh
|
|---|
| 87 | PROGRAMS = $(bin_PROGRAMS)
|
|---|
| 88 |
|
|---|
| 89 | MAKE_HOST = i386-pc-msdosdjgpp
|
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 | DEFS = -I. -I$(srcdir) -I.
|
|---|
| 93 | CPPFLAGS = -DHAVE_CONFIG_H
|
|---|
| 94 | LDFLAGS =
|
|---|
| 95 | LIBS =
|
|---|
| 96 | make_OBJECTS = ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o rule.o signame.o variable.o version.o vpath.o hash.o remote-$(REMOTE).o
|
|---|
| 97 | make_DEPENDENCIES = glob/libglob.a
|
|---|
| 98 | make_LDFLAGS =
|
|---|
| 99 | libglob_a_LIBADD =
|
|---|
| 100 | libglob_a_OBJECTS = fnmatch.o glob.o
|
|---|
| 101 | noinst_LIBRARIES = glob/libglob.a
|
|---|
| 102 | CFLAGS = -O2 -g
|
|---|
| 103 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
|---|
| 104 | LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
|---|
| 105 | TEXI2DVI = texi2dvi
|
|---|
| 106 | TEXINFO_TEX = $(srcdir)/config/texinfo.tex
|
|---|
| 107 | INFO_DEPS = make.info
|
|---|
| 108 | DVIS = make.dvi
|
|---|
| 109 | TEXINFOS = make.texinfo
|
|---|
| 110 | man1dir = $(mandir)/man1
|
|---|
| 111 | MANS = $(man_MANS)
|
|---|
| 112 |
|
|---|
| 113 | NROFF = nroff
|
|---|
| 114 | DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 alloca.c build.sh-in config.h-in configure configure.in getloadavg.c
|
|---|
| 115 |
|
|---|
| 116 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
|---|
| 117 |
|
|---|
| 118 | TAR = gtar
|
|---|
| 119 | GZIP = --best
|
|---|
| 120 | SOURCES = $(make_SOURCES)
|
|---|
| 121 | OBJECTS = $(make_OBJECTS)
|
|---|
| 122 | HEADERS = $(wildcard $(srcdir)/*.h)
|
|---|
| 123 |
|
|---|
| 124 | default: all
|
|---|
| 125 |
|
|---|
| 126 | .SUFFIXES:
|
|---|
| 127 | .SUFFIXES: .c .dvi .info .o .obj .ps .texinfo .tex
|
|---|
| 128 |
|
|---|
| 129 | mostlyclean-hdr:
|
|---|
| 130 |
|
|---|
| 131 | clean-hdr:
|
|---|
| 132 |
|
|---|
| 133 | distclean-hdr:
|
|---|
| 134 | -rm -f config.h
|
|---|
| 135 |
|
|---|
| 136 | maintainer-clean-hdr:
|
|---|
| 137 |
|
|---|
| 138 | mostlyclean-binPROGRAMS:
|
|---|
| 139 |
|
|---|
| 140 | clean-binPROGRAMS:
|
|---|
| 141 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
|---|
| 142 |
|
|---|
| 143 | distclean-binPROGRAMS:
|
|---|
| 144 |
|
|---|
| 145 | maintainer-clean-binPROGRAMS:
|
|---|
| 146 |
|
|---|
| 147 | install-binPROGRAMS: $(bin_PROGRAMS)
|
|---|
| 148 | @$(NORMAL_INSTALL)
|
|---|
| 149 | $(mkinstalldirs) $(DESTDIR)$(bindir)
|
|---|
| 150 | @list='$(bin_PROGRAMS)'; for p in $$list; do if test -f $$p; then echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`"; $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`; else :; fi; done
|
|---|
| 151 |
|
|---|
| 152 | uninstall-binPROGRAMS:
|
|---|
| 153 | $(NORMAL_UNINSTALL)
|
|---|
| 154 | list='$(bin_PROGRAMS)'; for p in $$list; do rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`.exe; done
|
|---|
| 155 |
|
|---|
| 156 | .c.o:
|
|---|
| 157 | $(COMPILE) -c $<
|
|---|
| 158 |
|
|---|
| 159 | clean-noinstLIBRARIES:
|
|---|
| 160 | -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
|
|---|
| 161 |
|
|---|
| 162 | mostlyclean-compile:
|
|---|
| 163 | -rm -f *.$(OBJEXT) *$(EXEEXT) make.new core
|
|---|
| 164 |
|
|---|
| 165 | clean-compile:
|
|---|
| 166 |
|
|---|
| 167 | distclean-compile:
|
|---|
| 168 | -rm -f *.tab.c *_tab.c
|
|---|
| 169 |
|
|---|
| 170 | maintainer-clean-compile:
|
|---|
| 171 |
|
|---|
| 172 | make$(EXEEXT): $(make_OBJECTS) $(make_DEPENDENCIES)
|
|---|
| 173 | @command.com /c if exist make del make
|
|---|
| 174 | @command.com /c if exist make.exe del make.exe
|
|---|
| 175 | $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
|
|---|
| 176 |
|
|---|
| 177 | make.info: make.texinfo
|
|---|
| 178 | make.dvi: make.texinfo
|
|---|
| 179 |
|
|---|
| 180 |
|
|---|
| 181 | DVIPS = dvips
|
|---|
| 182 |
|
|---|
| 183 | .texinfo.info:
|
|---|
| 184 | @command.com /c if exist make.info* del make.info*
|
|---|
| 185 | @command.com /c if exist make.i* del make.i*
|
|---|
| 186 | $(MAKEINFO) -I$(srcdir) $< -o ./$@
|
|---|
| 187 |
|
|---|
| 188 | .texinfo:
|
|---|
| 189 | @command.com /c if exist make.info* del make.info*
|
|---|
| 190 | @command.com /c if exist make.i* del make.i*
|
|---|
| 191 | $(MAKEINFO) -I$(srcdir) $< -o ./$@
|
|---|
| 192 |
|
|---|
| 193 | .texinfo.dvi:
|
|---|
| 194 | TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
|---|
| 195 |
|
|---|
| 196 |
|
|---|
| 197 | .dvi.ps:
|
|---|
| 198 | $(DVIPS) $< -o $@
|
|---|
| 199 |
|
|---|
| 200 | install-info-am: $(INFO_DEPS)
|
|---|
| 201 | @$(NORMAL_INSTALL)
|
|---|
| 202 | $(mkinstalldirs) $(DESTDIR)$(infodir)
|
|---|
| 203 | @for file in $(INFO_DEPS) make.i; do d=$(srcdir); for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]`; do if test -f $$d/$$ifile; then echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; else : ; fi; done; done
|
|---|
| 204 | @$(POST_INSTALL)
|
|---|
| 205 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then for file in $(INFO_DEPS); do echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file"; install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :; done; else : ; fi
|
|---|
| 206 |
|
|---|
| 207 | uninstall-info:
|
|---|
| 208 | $(PRE_UNINSTALL)
|
|---|
| 209 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then ii=yes; else ii=; fi; for file in $(INFO_DEPS); do test -z $ii || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; done
|
|---|
| 210 | $(NORMAL_UNINSTALL)
|
|---|
| 211 | for file in $(INFO_DEPS) make.i; do (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]); done
|
|---|
| 212 |
|
|---|
| 213 | dist-info: $(INFO_DEPS)
|
|---|
| 214 | for base in $(INFO_DEPS); do d=$(srcdir); for file in `cd $$d && eval echo $$base*`; do test -f $(distdir)/$$file || ln $$d/$$file $(distdir)/$$file 2> /dev/null || cp -p $$d/$$file $(distdir)/$$file; done; done
|
|---|
| 215 |
|
|---|
| 216 | mostlyclean-aminfo:
|
|---|
| 217 | -rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky \
|
|---|
| 218 | make.kys make.ps make.log make.pg make.toc make.tp make.tps \
|
|---|
| 219 | make.vr make.vrs make.op make.tr make.cv make.cn
|
|---|
| 220 |
|
|---|
| 221 | clean-aminfo:
|
|---|
| 222 |
|
|---|
| 223 | distclean-aminfo:
|
|---|
| 224 |
|
|---|
| 225 | maintainer-clean-aminfo:
|
|---|
| 226 | for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
|
|---|
| 227 |
|
|---|
| 228 | install-man1:
|
|---|
| 229 | $(mkinstalldirs) $(DESTDIR)$(man1dir)
|
|---|
| 230 | @list='$(man1_MANS)'; \
|
|---|
| 231 | l2='$(man_MANS)'; for i in $$l2; do \
|
|---|
| 232 | case "$$i" in \
|
|---|
| 233 | *.1*) list="$$list $$i" ;; \
|
|---|
| 234 | esac; \
|
|---|
| 235 | done; \
|
|---|
| 236 | for i in $$list; do \
|
|---|
| 237 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
|---|
| 238 | else file=$$i; fi; \
|
|---|
| 239 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
|---|
| 240 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
|---|
| 241 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
|---|
| 242 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
|---|
| 243 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
|---|
| 244 | done
|
|---|
| 245 |
|
|---|
| 246 | uninstall-man1:
|
|---|
| 247 | @list='$(man1_MANS)'; \
|
|---|
| 248 | l2='$(man_MANS)'; for i in $$l2; do \
|
|---|
| 249 | case "$$i" in \
|
|---|
| 250 | *.1*) list="$$list $$i" ;; \
|
|---|
| 251 | esac; \
|
|---|
| 252 | done; \
|
|---|
| 253 | for i in $$list; do \
|
|---|
| 254 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
|---|
| 255 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
|---|
| 256 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
|---|
| 257 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
|---|
| 258 | rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
|---|
| 259 | done
|
|---|
| 260 | install-man: $(MANS)
|
|---|
| 261 | @$(NORMAL_INSTALL)
|
|---|
| 262 | $(MAKE) install-man1
|
|---|
| 263 | uninstall-man:
|
|---|
| 264 | @$(NORMAL_UNINSTALL)
|
|---|
| 265 | $(MAKE) uninstall-man1
|
|---|
| 266 |
|
|---|
| 267 | # Assume that the only thing to do in glob is to build libglob.a,
|
|---|
| 268 | # but do a sanity check: if $SUBDIRS will ever have more than
|
|---|
| 269 | # a single directory, yell bloody murder.
|
|---|
| 270 | all-recursive:
|
|---|
| 271 | ifeq ($(words $(SUBDIRS)), 1)
|
|---|
| 272 | @command.com /c if not exist glob\\nul md glob
|
|---|
| 273 | @echo Making all in $(SUBDIRS)
|
|---|
| 274 | $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
|
|---|
| 275 | else
|
|---|
| 276 | @echo FATAL: There is more than one directory in "($(SUBDIRS))"
|
|---|
| 277 | @$(EXIT_FAIL)
|
|---|
| 278 | endif
|
|---|
| 279 |
|
|---|
| 280 | $(SUBDIRS):
|
|---|
| 281 | command.com /c md $@
|
|---|
| 282 |
|
|---|
| 283 | libglob.a: $(libglob_a_OBJECTS)
|
|---|
| 284 | command.com /c if exist libglob.a del libglob.a
|
|---|
| 285 | $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
|
|---|
| 286 | $(RANLIB) libglob.a
|
|---|
| 287 |
|
|---|
| 288 | mostlyclean-recursive clean-recursive distclean-recursive \
|
|---|
| 289 | maintainer-clean-recursive check-recursive:
|
|---|
| 290 | ifeq ($(words $(SUBDIRS)), 1)
|
|---|
| 291 | @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
|
|---|
| 292 | $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
|
|---|
| 293 | else
|
|---|
| 294 | @echo FATAL: There is more than one directory in "($(SUBDIRS))"
|
|---|
| 295 | @$(EXIT_FAIL)
|
|---|
| 296 | endif
|
|---|
| 297 |
|
|---|
| 298 | tags-in-glob: $(libglob_a_SOURCES)
|
|---|
| 299 | etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
|
|---|
| 300 |
|
|---|
| 301 | tags-recursive:
|
|---|
| 302 | ifeq ($(words $(SUBDIRS)), 1)
|
|---|
| 303 | $(MAKE) tags-in-glob
|
|---|
| 304 | else
|
|---|
| 305 | @echo FATAL: There is more than one directory in "($(SUBDIRS))"
|
|---|
| 306 | @$(EXIT_FAIL)
|
|---|
| 307 | endif
|
|---|
| 308 |
|
|---|
| 309 | tags: TAGS
|
|---|
| 310 |
|
|---|
| 311 | ID: $(HEADERS) $(SOURCES)
|
|---|
| 312 | mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
|
|---|
| 313 |
|
|---|
| 314 | TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
|
|---|
| 315 | etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
|
|---|
| 316 |
|
|---|
| 317 | mostlyclean-tags:
|
|---|
| 318 |
|
|---|
| 319 | clean-tags:
|
|---|
| 320 |
|
|---|
| 321 | distclean-tags:
|
|---|
| 322 | -rm -f TAGS ID
|
|---|
| 323 |
|
|---|
| 324 | maintainer-clean-tags:
|
|---|
| 325 |
|
|---|
| 326 | distdir = $(PACKAGE)-$(VERSION)
|
|---|
| 327 | top_distdir = $(distdir)
|
|---|
| 328 |
|
|---|
| 329 | # This target untars the dist file and tries a VPATH configuration. Then
|
|---|
| 330 | # it guarantees that the distribution is self-contained by making another
|
|---|
| 331 | # tarfile.
|
|---|
| 332 | distcheck: dist
|
|---|
| 333 | rm -rf $(distdir)
|
|---|
| 334 | GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
|
|---|
| 335 | mkdir $(distdir)/=build
|
|---|
| 336 | mkdir $(distdir)/=inst
|
|---|
| 337 | dc_install_base=`cd $(distdir)/=inst && pwd`; cd $(distdir)/=build && ../configure --srcdir=.. --prefix=$$dc_install_base && $(MAKE) && $(MAKE) dvi && $(MAKE) check && $(MAKE) install && $(MAKE) installcheck && $(MAKE) dist
|
|---|
| 338 | rm -rf $(distdir)
|
|---|
| 339 | @echo "========================"; echo "$(distdir).tar.gz is ready for distribution"; echo "========================"
|
|---|
| 340 | dist: distdir
|
|---|
| 341 | -chmod -R a+r $(distdir)
|
|---|
| 342 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
|---|
| 343 | rm -rf $(distdir)
|
|---|
| 344 | dist-all: distdir
|
|---|
| 345 | -chmod -R a+r $(distdir)
|
|---|
| 346 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
|---|
| 347 | rm -rf $(distdir)
|
|---|
| 348 | distdir: $(DISTFILES)
|
|---|
| 349 | rm -rf $(distdir)
|
|---|
| 350 | mkdir $(distdir)
|
|---|
| 351 | -chmod 777 $(distdir)
|
|---|
| 352 | @for file in $(DISTFILES); do d=$(srcdir); test -f $(distdir)/$$file || ln $$d/$$file $(distdir)/$$file 2> /dev/null || cp -p $$d/$$file $(distdir)/$$file; done; for subdir in $(SUBDIRS); do test -d $(distdir)/$$subdir || mkdir $(distdir)/$$subdir || exit 1; chmod 777 $(distdir)/$$subdir; (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir)/$$subdir distdir=../$(distdir)/$$subdir distdir) || exit 1; done
|
|---|
| 353 | $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
|
|---|
| 354 | $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
|
|---|
| 355 |
|
|---|
| 356 | info: $(INFO_DEPS) info-recursive
|
|---|
| 357 | dvi: $(DVIS) dvi-recursive
|
|---|
| 358 | check: all-am check-recursive check-local
|
|---|
| 359 | @:
|
|---|
| 360 | installcheck: installcheck-recursive
|
|---|
| 361 | all-recursive-am: config.h
|
|---|
| 362 | $(MAKE) all-recursive
|
|---|
| 363 |
|
|---|
| 364 | all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
|
|---|
| 365 |
|
|---|
| 366 | install-exec-am: install-binPROGRAMS
|
|---|
| 367 |
|
|---|
| 368 | install-data-am: install-info-am
|
|---|
| 369 |
|
|---|
| 370 | uninstall-am: uninstall-binPROGRAMS uninstall-info
|
|---|
| 371 |
|
|---|
| 372 | install-exec: install-exec-recursive install-exec-am
|
|---|
| 373 | @$(NORMAL_INSTALL)
|
|---|
| 374 |
|
|---|
| 375 | install-data: install-data-recursive install-data-am
|
|---|
| 376 | @$(NORMAL_INSTALL)
|
|---|
| 377 |
|
|---|
| 378 | install-recursive uninstall-recursive:
|
|---|
| 379 | @:
|
|---|
| 380 |
|
|---|
| 381 | install: install-recursive install-exec-am install-data-am
|
|---|
| 382 | @:
|
|---|
| 383 |
|
|---|
| 384 | uninstall: uninstall-recursive uninstall-am
|
|---|
| 385 |
|
|---|
| 386 | all: all-recursive-am all-am
|
|---|
| 387 |
|
|---|
| 388 | install-strip:
|
|---|
| 389 | $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
|
|---|
| 390 | installdirs: installdirs-recursive
|
|---|
| 391 | $(mkinstalldirs) $(bindir) $(infodir)
|
|---|
| 392 |
|
|---|
| 393 |
|
|---|
| 394 | mostlyclean-generic:
|
|---|
| 395 | -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
|
|---|
| 396 |
|
|---|
| 397 | clean-generic:
|
|---|
| 398 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
|---|
| 399 |
|
|---|
| 400 | distclean-generic:
|
|---|
| 401 | -rm -f Makefile $(DISTCLEANFILES)
|
|---|
| 402 | -rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
|---|
| 403 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
|---|
| 404 |
|
|---|
| 405 | maintainer-clean-generic:
|
|---|
| 406 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
|---|
| 407 | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
|---|
| 408 | mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS mostlyclean-compile mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
|
|---|
| 409 |
|
|---|
| 410 | clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-aminfo clean-tags clean-generic mostlyclean-am
|
|---|
| 411 |
|
|---|
| 412 | distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile distclean-aminfo distclean-tags distclean-generic clean-am
|
|---|
| 413 |
|
|---|
| 414 | maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS maintainer-clean-compile maintainer-clean-aminfo maintainer-clean-tags maintainer-clean-generic distclean-am
|
|---|
| 415 |
|
|---|
| 416 | mostlyclean: mostlyclean-recursive mostlyclean-am
|
|---|
| 417 |
|
|---|
| 418 | clean: clean-noinstLIBRARIES clean-recursive clean-am
|
|---|
| 419 |
|
|---|
| 420 | distclean: distclean-recursive distclean-am
|
|---|
| 421 | rm -f config.status
|
|---|
| 422 |
|
|---|
| 423 | maintainer-clean: maintainer-clean-recursive maintainer-clean-am
|
|---|
| 424 | @echo "This command is intended for maintainers to use;"
|
|---|
| 425 | @echo "it deletes files that may require special tools to rebuild."
|
|---|
| 426 | rm -f config.status
|
|---|
| 427 |
|
|---|
| 428 | .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
|
|---|
| 429 | maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
|
|---|
| 430 | clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
|
|---|
| 431 | install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
|
|---|
| 432 | maintainer-clean-compile install-info-am uninstall-info \
|
|---|
| 433 | mostlyclean-aminfo distclean-aminfo clean-aminfo \
|
|---|
| 434 | maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
|
|---|
| 435 | install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
|---|
| 436 | uninstalldirs-recursive all-recursive check-recursive check-am \
|
|---|
| 437 | installcheck-recursive info-recursive dvi-recursive \
|
|---|
| 438 | mostlyclean-recursive distclean-recursive clean-recursive \
|
|---|
| 439 | maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
|---|
| 440 | distclean-tags clean-tags maintainer-clean-tags distdir \
|
|---|
| 441 | mostlyclean-depend distclean-depend clean-depend \
|
|---|
| 442 | maintainer-clean-depend info dvi check-local installcheck \
|
|---|
| 443 | all-recursive-am all-am install-exec-am install-data-am uninstall-am \
|
|---|
| 444 | install-exec install-data install uninstall all installdirs \
|
|---|
| 445 | mostlyclean-generic distclean-generic clean-generic \
|
|---|
| 446 | maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
|---|
| 447 |
|
|---|
| 448 |
|
|---|
| 449 | # --------------- Local DIST Section
|
|---|
| 450 |
|
|---|
| 451 | # Install the w32 subdirectory
|
|---|
| 452 | #
|
|---|
| 453 | dist-hook:
|
|---|
| 454 | (cd $(srcdir); \
|
|---|
| 455 | w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
|
|---|
| 456 | tar chf - $$w32) \
|
|---|
| 457 | | (cd $(distdir); tar xfBp -)
|
|---|
| 458 |
|
|---|
| 459 | # --------------- Local CHECK Section
|
|---|
| 460 |
|
|---|
| 461 | # Note: check-loadavg is NOT a prerequisite of check-local, since
|
|---|
| 462 | # there's no uptime utility, and the test it does doesn't make sense
|
|---|
| 463 | # on MSDOS anyway.
|
|---|
| 464 | check-local: check-shell check-regression
|
|---|
| 465 | @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
|
|---|
| 466 | dashes=`echo "$$banner" | sed s/./=/g`; \
|
|---|
| 467 | echo; \
|
|---|
| 468 | echo "$$dashes"; \
|
|---|
| 469 | echo "$$banner"; \
|
|---|
| 470 | echo "$$dashes"; \
|
|---|
| 471 | echo
|
|---|
| 472 |
|
|---|
| 473 | .PHONY: check-loadavg check-shell check-regression
|
|---|
| 474 |
|
|---|
| 475 | # > check-shell
|
|---|
| 476 | #
|
|---|
| 477 | # check-shell is designed to fail if they don't have a Unixy shell
|
|---|
| 478 | # installed. The test suite requires such a shell.
|
|---|
| 479 | check-shell:
|
|---|
| 480 | @echo If Make says Error -1, you do not have Unix-style shell installed
|
|---|
| 481 | @foo=bar.exe :
|
|---|
| 482 |
|
|---|
| 483 | # > check-loadavg
|
|---|
| 484 | #
|
|---|
| 485 | loadavg: loadavg.c config.h
|
|---|
| 486 | @rm -f loadavg
|
|---|
| 487 | $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
|
|---|
| 488 | # We copy getloadavg.c into a different file rather than compiling it
|
|---|
| 489 | # directly because some compilers clobber getloadavg.o in the process.
|
|---|
| 490 | loadavg.c: getloadavg.c
|
|---|
| 491 | ln $(srcdir)/getloadavg.c loadavg.c || \
|
|---|
| 492 | cp $(srcdir)/getloadavg.c loadavg.c
|
|---|
| 493 | check-loadavg: loadavg
|
|---|
| 494 | @echo The system uptime program believes the load average to be:
|
|---|
| 495 | -uptime
|
|---|
| 496 | @echo The GNU load average checking code believes:
|
|---|
| 497 | -./loadavg
|
|---|
| 498 |
|
|---|
| 499 | # > check-regression
|
|---|
| 500 | #
|
|---|
| 501 | # Look for the make test suite, and run it if found. Look in MAKE_TEST if
|
|---|
| 502 | # specified, or else in the srcdir or the distdir, their parents, and _their_
|
|---|
| 503 | # parents.
|
|---|
| 504 | #
|
|---|
| 505 | check-regression:
|
|---|
| 506 | @if test -f "$(srcdir)/tests/run_make_tests"; then \
|
|---|
| 507 | if $(PERL) -v >/dev/null 2>&1; then \
|
|---|
| 508 | case `cd $(srcdir); pwd` in `pwd`) : ;; \
|
|---|
| 509 | *) test -d tests || mkdir tests; \
|
|---|
| 510 | for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
|
|---|
| 511 | rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
|
|---|
| 512 | done ;; \
|
|---|
| 513 | esac; \
|
|---|
| 514 | echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
|
|---|
| 515 | cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
|
|---|
| 516 | else \
|
|---|
| 517 | echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
|
|---|
| 518 | fi; \
|
|---|
| 519 | else \
|
|---|
| 520 | echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
|
|---|
| 521 | fi
|
|---|
| 522 |
|
|---|
| 523 | # --------------- Maintainer's Section
|
|---|
| 524 |
|
|---|
| 525 | # Note this requires GNU make. Not to worry, since it will only be included
|
|---|
| 526 | # in the Makefile if we're in the maintainer's environment.
|
|---|
| 527 | #include $(srcdir)/maintMakefile
|
|---|
| 528 |
|
|---|
| 529 | # Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|---|
| 530 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
|---|
| 531 | .NOEXPORT:
|
|---|
| 532 |
|
|---|
| 533 | # --------------- DEPENDENCIES
|
|---|
| 534 |
|
|---|
| 535 | # --------------- DEPENDENCIES
|
|---|
| 536 | #
|
|---|
| 537 | # dummy
|
|---|
| 538 | # dummy
|
|---|
| 539 | ar.o : \
|
|---|
| 540 | ar.c make.h config.h \
|
|---|
| 541 | getopt.h \
|
|---|
| 542 | gettext.h filedef.h \
|
|---|
| 543 | hash.h dep.h
|
|---|
| 544 | arscan.o : \
|
|---|
| 545 | arscan.c make.h config.h \
|
|---|
| 546 | getopt.h \
|
|---|
| 547 | gettext.h \
|
|---|
| 548 |
|
|---|
| 549 | commands.o : \
|
|---|
| 550 | commands.c make.h config.h \
|
|---|
| 551 | getopt.h \
|
|---|
| 552 | gettext.h dep.h \
|
|---|
| 553 | filedef.h hash.h variable.h job.h \
|
|---|
| 554 | commands.h
|
|---|
| 555 | default.o : \
|
|---|
| 556 | default.c make.h config.h \
|
|---|
| 557 | getopt.h \
|
|---|
| 558 | gettext.h filedef.h \
|
|---|
| 559 | hash.h variable.h rule.h dep.h job.h \
|
|---|
| 560 | commands.h
|
|---|
| 561 | dir.o : \
|
|---|
| 562 | dir.c make.h config.h \
|
|---|
| 563 | getopt.h \
|
|---|
| 564 | gettext.h hash.h \
|
|---|
| 565 |
|
|---|
| 566 | expand.o : \
|
|---|
| 567 | expand.c make.h config.h \
|
|---|
| 568 | getopt.h \
|
|---|
| 569 | gettext.h \
|
|---|
| 570 | filedef.h hash.h job.h \
|
|---|
| 571 | commands.h variable.h rule.h
|
|---|
| 572 | file.o : \
|
|---|
| 573 | file.c make.h config.h \
|
|---|
| 574 | getopt.h \
|
|---|
| 575 | gettext.h \
|
|---|
| 576 | dep.h filedef.h hash.h job.h \
|
|---|
| 577 | commands.h variable.h \
|
|---|
| 578 | debug.h
|
|---|
| 579 | function.o : \
|
|---|
| 580 | function.c make.h config.h \
|
|---|
| 581 | getopt.h \
|
|---|
| 582 | gettext.h filedef.h \
|
|---|
| 583 | hash.h variable.h dep.h job.h \
|
|---|
| 584 | commands.h debug.h
|
|---|
| 585 | getopt.o : \
|
|---|
| 586 | getopt.c config.h \
|
|---|
| 587 |
|
|---|
| 588 | getopt1.o : \
|
|---|
| 589 | getopt1.c config.h getopt.h \
|
|---|
| 590 |
|
|---|
| 591 | hash.o : \
|
|---|
| 592 | hash.c make.h config.h \
|
|---|
| 593 | getopt.h \
|
|---|
| 594 | gettext.h hash.h
|
|---|
| 595 | implicit.o : \
|
|---|
| 596 | implicit.c make.h config.h \
|
|---|
| 597 | getopt.h \
|
|---|
| 598 | gettext.h filedef.h \
|
|---|
| 599 | hash.h rule.h dep.h debug.h
|
|---|
| 600 | job.o : \
|
|---|
| 601 | job.c make.h config.h \
|
|---|
| 602 | getopt.h \
|
|---|
| 603 | gettext.h \
|
|---|
| 604 | job.h \
|
|---|
| 605 | debug.h filedef.h hash.h commands.h \
|
|---|
| 606 | variable.h \
|
|---|
| 607 |
|
|---|
| 608 | loadavg-getloadavg.o : \
|
|---|
| 609 | getloadavg.c config.h \
|
|---|
| 610 | make.h \
|
|---|
| 611 | getopt.h \
|
|---|
| 612 | gettext.h \
|
|---|
| 613 |
|
|---|
| 614 | main.o : \
|
|---|
| 615 | main.c make.h config.h \
|
|---|
| 616 | getopt.h \
|
|---|
| 617 | gettext.h dep.h \
|
|---|
| 618 | filedef.h hash.h variable.h job.h \
|
|---|
| 619 | commands.h rule.h debug.h \
|
|---|
| 620 |
|
|---|
| 621 | misc.o : \
|
|---|
| 622 | misc.c make.h config.h \
|
|---|
| 623 | getopt.h \
|
|---|
| 624 | gettext.h dep.h \
|
|---|
| 625 | debug.h
|
|---|
| 626 | read.o : \
|
|---|
| 627 | read.c make.h config.h \
|
|---|
| 628 | getopt.h \
|
|---|
| 629 | gettext.h \
|
|---|
| 630 | dep.h filedef.h hash.h \
|
|---|
| 631 | job.h commands.h \
|
|---|
| 632 | variable.h rule.h debug.h
|
|---|
| 633 | remake.o : \
|
|---|
| 634 | remake.c make.h config.h \
|
|---|
| 635 | getopt.h \
|
|---|
| 636 | gettext.h filedef.h \
|
|---|
| 637 | hash.h job.h \
|
|---|
| 638 | commands.h dep.h variable.h debug.h
|
|---|
| 639 | # dummy
|
|---|
| 640 | remote-stub.o : \
|
|---|
| 641 | remote-stub.c make.h config.h \
|
|---|
| 642 | getopt.h \
|
|---|
| 643 | gettext.h filedef.h \
|
|---|
| 644 | hash.h job.h \
|
|---|
| 645 | commands.h
|
|---|
| 646 | rule.o : \
|
|---|
| 647 | rule.c make.h config.h \
|
|---|
| 648 | getopt.h \
|
|---|
| 649 | gettext.h dep.h \
|
|---|
| 650 | filedef.h hash.h job.h \
|
|---|
| 651 | commands.h variable.h rule.h
|
|---|
| 652 | signame.o : \
|
|---|
| 653 | signame.c make.h config.h \
|
|---|
| 654 | getopt.h \
|
|---|
| 655 | gettext.h
|
|---|
| 656 | variable.o : \
|
|---|
| 657 | variable.c make.h config.h \
|
|---|
| 658 | getopt.h \
|
|---|
| 659 | gettext.h dep.h \
|
|---|
| 660 | filedef.h hash.h job.h \
|
|---|
| 661 | commands.h variable.h rule.h
|
|---|
| 662 | version.o : \
|
|---|
| 663 | version.c config.h
|
|---|
| 664 | vpath.o : \
|
|---|
| 665 | vpath.c make.h config.h \
|
|---|
| 666 | getopt.h \
|
|---|
| 667 | gettext.h filedef.h \
|
|---|
| 668 | hash.h variable.h
|
|---|