aboutsummaryrefslogtreecommitdiff
path: root/sim/moxie
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-10-09 03:57:12 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-10-11 11:22:14 +0100
commitd2d69057a2c2d2e51d4b5ea27fea2e1e65a83592 (patch)
tree76b69991e294503c21850a07072917b165b8dd27 /sim/moxie
parent73fa80feee65dde8cbbdacca1b76b4f3f6af62cb (diff)
downloadgdb-d2d69057a2c2d2e51d4b5ea27fea2e1e65a83592.zip
gdb-d2d69057a2c2d2e51d4b5ea27fea2e1e65a83592.tar.gz
gdb-d2d69057a2c2d2e51d4b5ea27fea2e1e65a83592.tar.bz2
sim/moxie: add custom directory stamp rule
Because sim/moxie/moxie-gdb.dtb is neither a program nor a library, automake does not generate dirstamp file ($builddir/sim/moxie/.dirstamp) for it. When maintainer mode is enabled, it tries to rebuild sim/moxie/moxie-gdb.dtb but fails because there's no rules for automake-generated dirstamp file which moxie-gdb.dtb depends. This commit adds its own rule for the directory stamp (modified copy of the automake output) and adds the directory stamp file to DISTCLEANFILES to mimic automake-generated behavior (although "make distclean" does not work when maintainer mode is enabled).
Diffstat (limited to 'sim/moxie')
-rw-r--r--sim/moxie/local.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/moxie/local.mk b/sim/moxie/local.mk
index cd57f56..600d264 100644
--- a/sim/moxie/local.mk
+++ b/sim/moxie/local.mk
@@ -30,3 +30,10 @@ dtb_DATA = %D%/moxie-gdb.dtb
echo "tree compiler tool (dtc) is missing. Install the tool to "; \
echo "update the device tree blob."; \
fi
+
+# Rule to create the .dirstamp file (on which moxie-gdb.dtb depends)
+# as automake fails to automatically create this rule for _DATA items.
+%D%/$(am__dirstamp):
+ @$(MKDIR_P) %D%
+ @: >%D%/$(am__dirstamp)
+DISTCLEANFILES += %D%/$(am__dirstamp)