diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-11-29 13:51:25 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-11-29 13:51:25 +0100 |
commit | 250102c8449c06ef1428e7838cdb556c830659d9 (patch) | |
tree | a913fdbaef81222e494cea537cdbe002b58f9d1b /posix/Makefile | |
parent | 96cd0558bcd69481ccc42e1b392f0c0b36fce2b0 (diff) | |
download | glibc-250102c8449c06ef1428e7838cdb556c830659d9.zip glibc-250102c8449c06ef1428e7838cdb556c830659d9.tar.gz glibc-250102c8449c06ef1428e7838cdb556c830659d9.tar.bz2 |
posix: Do not include testcases.h, ptestcases.h in source tree
These files were both auto-generated and shipped in the source tree.
We can assume that sed is available and always generate the files
during the build.
Diffstat (limited to 'posix/Makefile')
-rw-r--r-- | posix/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/posix/Makefile b/posix/Makefile index d67f68d..a8fb1e1 100644 --- a/posix/Makefile +++ b/posix/Makefile @@ -115,7 +115,7 @@ others := getconf install-bin := getconf install-others-programs := $(inst_libexecdir)/getconf -before-compile += testcases.h ptestcases.h $(objpfx)posix-conf-vars-def.h +before-compile += $(objpfx)posix-conf-vars-def.h # So they get cleaned up. generated += $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \ @@ -129,7 +129,8 @@ generated += $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \ tst-boost.mtrace bug-ga2.mtrace bug-ga2-mem.out \ bug-glob2.mtrace bug-glob2-mem.out tst-vfork3-mem.out \ tst-vfork3.mtrace getconf.speclist tst-fnmatch-mem.out \ - tst-fnmatch.mtrace bug-regex36.mtrace + tst-fnmatch.mtrace bug-regex36.mtrace \ + testcases.h ptestcases.h ifeq ($(run-built-tests),yes) ifeq (yes,$(build-shared)) @@ -261,13 +262,15 @@ bug-glob1-ARGS = "$(objpfx)" tst-execvp3-ARGS = --test-dir=$(objpfx) CFLAGS-tst-spawn3.c += -DOBJPFX=\"$(objpfx)\" -testcases.h: TESTS TESTS2C.sed +$(objpfx)testcases.h: TESTS TESTS2C.sed LC_ALL=C sed -f TESTS2C.sed < $< > $@T - mv -f $@T $@ + mv $@T $@ +$(objpfx)runtests.o: $(objpfx)testcases.h -ptestcases.h: PTESTS PTESTS2C.sed +$(objpfx)ptestcases.h: PTESTS PTESTS2C.sed LC_ALL=C sed -f PTESTS2C.sed < $< > $@T - mv -f $@T $@ + mv $@T $@ +$(objpfx)runptests.o: $(objpfx)ptestcases.h $(objpfx)tst-getopt-cancel: $(shared-thread-library) |