mirror of
https://github.com/mirror/make.git
synced 2025-04-01 15:11:16 +08:00
Formerly GNUmakefile.~53~
This commit is contained in:
parent
71956239ac
commit
491a9d9cb4
11
GNUmakefile
11
GNUmakefile
@ -167,8 +167,9 @@ endif
|
|||||||
|
|
||||||
# Run the tests.
|
# Run the tests.
|
||||||
.PHONY: tests
|
.PHONY: tests
|
||||||
tests:
|
testdir := $(firstword $(wildcard make-test-?.?))
|
||||||
$(MAKE) -C tests
|
tests: $(testdir)/run_make_tests.pl $(prog)
|
||||||
|
# cd $(<D); perl $(<F)
|
||||||
|
|
||||||
# Make the distribution tar files.
|
# Make the distribution tar files.
|
||||||
|
|
||||||
@ -176,7 +177,7 @@ tests:
|
|||||||
# Figure out the version number from the source of `version.c'.
|
# Figure out the version number from the source of `version.c'.
|
||||||
version := \
|
version := \
|
||||||
$(strip $(shell sed -e '/=/!d' -e 's/^.*"\(.*\)";$$/\1/' < version.c))
|
$(strip $(shell sed -e '/=/!d' -e 's/^.*"\(.*\)";$$/\1/' < version.c))
|
||||||
tarfiles := make make-doc make-tests
|
tarfiles := make make-doc
|
||||||
tarfiles := $(addsuffix -$(version).tar.Z,$(tarfiles))
|
tarfiles := $(addsuffix -$(version).tar.Z,$(tarfiles))
|
||||||
# Depend on default and doc so we don't ship anything that won't compile.
|
# Depend on default and doc so we don't ship anything that won't compile.
|
||||||
dist: default doc tests $(tarfiles)
|
dist: default doc tests $(tarfiles)
|
||||||
@ -187,7 +188,7 @@ local-inst: $(prog)
|
|||||||
install -c -g kmem -o $(USER) -m 2755 $< /usr/local/gnubin/make
|
install -c -g kmem -o $(USER) -m 2755 $< /usr/local/gnubin/make
|
||||||
|
|
||||||
# Put the alpha distribution files in the anonymous FTP directory.
|
# Put the alpha distribution files in the anonymous FTP directory.
|
||||||
alpha-files = $(tarfiles) GNUmakefile compatMakefile
|
alpha-files = $(tarfiles) GNUmakefile compatMakefile $(testdir).tar.Z
|
||||||
dist: alpha
|
dist: alpha
|
||||||
.PHONY: alpha
|
.PHONY: alpha
|
||||||
alpha-dir := ~ftp/gnu
|
alpha-dir := ~ftp/gnu
|
||||||
@ -217,6 +218,7 @@ make-$(version).tar.Z: README COPYING ChangeLog CHANGES TAGS tags Makefile \
|
|||||||
make.aux make.man texinfo.tex
|
make.aux make.man texinfo.tex
|
||||||
$(make-tar)
|
$(make-tar)
|
||||||
|
|
||||||
|
ifneq (,)
|
||||||
tests := $(filter-out %~,$(wildcard tests/*))
|
tests := $(filter-out %~,$(wildcard tests/*))
|
||||||
make-tests-$(version).tar.Z: $(tests)
|
make-tests-$(version).tar.Z: $(tests)
|
||||||
@rm -fr make-tests-$(version)
|
@rm -fr make-tests-$(version)
|
||||||
@ -224,5 +226,6 @@ make-tests-$(version).tar.Z: $(tests)
|
|||||||
tar cvhf $(@:.Z=) $(patsubst tests/%,make-tests-$(version)/%,$^)
|
tar cvhf $(@:.Z=) $(patsubst tests/%,make-tests-$(version)/%,$^)
|
||||||
rm -f make-tests-$(version)
|
rm -f make-tests-$(version)
|
||||||
compress -f $(@:.Z=)
|
compress -f $(@:.Z=)
|
||||||
|
endif
|
||||||
|
|
||||||
$(archpfx)loadtest: $(archpfx)load.o
|
$(archpfx)loadtest: $(archpfx)load.o
|
||||||
|
Loading…
Reference in New Issue
Block a user