diff options
author | Roland McGrath <roland@gnu.org> | 2005-12-22 23:38:16 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-12-22 23:38:16 +0000 |
commit | ba389ce307722a4d1ddf6997cce321c8c56cc1a5 (patch) | |
tree | ff8d1471ed274d71894ffd25f430fe84cbb5d9db | |
parent | 077a0da7dc2ecb4343930189413d24c637f4c4fa (diff) | |
download | glibc-ba389ce307722a4d1ddf6997cce321c8c56cc1a5.tar glibc-ba389ce307722a4d1ddf6997cce321c8c56cc1a5.tar.gz glibc-ba389ce307722a4d1ddf6997cce321c8c56cc1a5.tar.bz2 glibc-ba389ce307722a4d1ddf6997cce321c8c56cc1a5.zip |
2005-12-22 Roland McGrath <roland@redhat.com>
* Makerules [gen-as-const-headers] (tests): Add one test per .sym
file, not just one.
($(objpfx)test-as-const.c): Target replaced with ...
($(objpfx)test-as-const-%.c): ... this pattern rule.
(generated): Add those files.
-rw-r--r-- | Makerules | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -203,10 +203,10 @@ $(common-objpfx)%.h $(common-objpfx)%.h.d: $(..)scripts/gen-as-const.awk \ vpath %.sym $(sysdirs) before-compile += $(gen-as-const-headers:%.sym=$(common-objpfx)%.h) -tests += test-as-const -$(objpfx)test-as-const.c: $(..)scripts/gen-as-const.awk $(..)Makerules \ - $(gen-as-const-headers) \ - $(gen-as-const-headers:%.sym=$(common-objpfx)%.h) +tests += $(gen-as-const-headers:%.sym=test-as-const-%) +generated += $(gen-as-const-headers:%.sym=test-as-const-%.c) +$(objpfx)test-as-const-%.c: $(..)scripts/gen-as-const.awk $(..)Makerules \ + %.sym $(common-objpfx)%.h ($(AWK) '{ sub(/^/, "asconst_", $$2); print; }' $(filter %.h,$^); \ $(AWK) -v test=1 -f $< $(filter %.sym,$^); \ echo '#include "$(..)test-skeleton.c"') > $@T |