Revision | ad0b86ef103b7817592e9698dd4a3fe027f838ad (tree) |
---|---|
Time | 2023-01-28 20:58:38 |
Author | Ruben Agin <phabrics@phab...> |
Commiter | Ruben Agin |
Fixes for vpath builds of generated files.
@@ -38,8 +38,8 @@ $(noinst_SCRIPTS): %.sh: %.m4 | ||
38 | 38 | |
39 | 39 | # target to make m68k-auto.h: |
40 | 40 | m68k-auto.h: m68k-misc-auto.sh m68k-insns-auto.sh |
41 | - $(SHELL) m68k-misc-auto.sh --header > $@ | |
42 | - $(SHELL) m68k-insns-auto.sh --header >> $@ | |
41 | + $(SHELL) $< --header > $@ | |
42 | + $(SHELL) $(srcdir)/m68k-insns-auto.sh --header >> $@ | |
43 | 43 | |
44 | 44 | # target to make m68k-opmap.c: |
45 | 45 | m68k-opmap.c: m68k-iset.txt m68k-iset-expand.pl m68k-opmap-make.pl |
@@ -50,16 +50,16 @@ m68k-opmap.c: m68k-iset.txt m68k-iset-expand.pl m68k-opmap-make.pl | ||
50 | 50 | |
51 | 51 | # target to make m68k-insns-auto.c: |
52 | 52 | m68k-insns-auto.c: m68k-insns-auto.sh m68k-misc-auto.sh |
53 | - $(SHELL) m68k-insns-auto.sh > $@ | |
54 | - $(SHELL) m68k-misc-auto.sh >> $@ | |
53 | + $(SHELL) $< > $@ | |
54 | + $(SHELL) $(srcdir)/m68k-misc-auto.sh >> $@ | |
55 | 55 | |
56 | 56 | # target to make m68k-bus-auto.c: |
57 | 57 | m68k-bus-auto.c: m68k-bus-auto.sh |
58 | - $(SHELL) m68k-bus-auto.sh > $@ | |
58 | + $(SHELL) $< > $@ | |
59 | 59 | |
60 | 60 | # target to make m6888x-auto.c: |
61 | 61 | m6888x-auto.c: m6888x-auto.sh |
62 | - $(SHELL) m6888x-auto.sh > $@ | |
62 | + $(SHELL) $< > $@ | |
63 | 63 | |
64 | 64 | # dependencies on automatically-generated IEEE 754 sources: |
65 | 65 | $(tme_ic_m68k_la_OBJECTS): ../ieee754/ieee754-auto.h ../ieee754/ieee754-ops-auto.h |
@@ -41,25 +41,25 @@ $(noinst_SCRIPTS): %.sh: %.m4 | ||
41 | 41 | |
42 | 42 | # target to make sparc-auto.h: |
43 | 43 | sparc-auto.h: sparc-misc-auto.sh sparc-insns-auto.sh |
44 | - $(SHELL) sparc-misc-auto.sh --header > $@ | |
45 | - $(SHELL) sparc-insns-auto.sh --header >> $@ | |
44 | + $(SHELL) $< --header > $@ | |
45 | + $(SHELL) $(srcdir)/sparc-insns-auto.sh --header >> $@ | |
46 | 46 | |
47 | 47 | # target to make sparc-insns-auto.c: |
48 | 48 | sparc-insns-auto.c: sparc-insns-auto.sh sparc-misc-auto.sh |
49 | - $(SHELL) sparc-insns-auto.sh > $@ | |
50 | - $(SHELL) sparc-misc-auto.sh >> $@ | |
49 | + $(SHELL) $< > $@ | |
50 | + $(SHELL) $(srcdir)/sparc-misc-auto.sh >> $@ | |
51 | 51 | |
52 | 52 | # target to make sparc-bus-auto.c: |
53 | 53 | sparc-bus-auto.c: sparc-bus-auto.sh |
54 | - $(SHELL) sparc-bus-auto.sh > $@ | |
54 | + $(SHELL) $< > $@ | |
55 | 55 | |
56 | 56 | # target to make sparc-fpu-auto.c: |
57 | 57 | sparc-fpu-auto.c: sparc-fpu-auto.sh |
58 | - $(SHELL) sparc-fpu-auto.sh > $@ | |
58 | + $(SHELL) $< > $@ | |
59 | 59 | |
60 | 60 | # target to make sparc-vis-auto.c: |
61 | 61 | sparc-vis-auto.c: sparc-vis-auto.sh |
62 | - $(SHELL) sparc-vis-auto.sh > $@ | |
62 | + $(SHELL) $< > $@ | |
63 | 63 | |
64 | 64 | # dependencies on automatically-generated IEEE 754 sources: |
65 | 65 | $(tme_ic_sparc_la_OBJECTS): ../ieee754/ieee754-auto.h ../ieee754/ieee754-ops-auto.h |