sim/moxie: add custom directory stamp rule
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sun, 9 Oct 2022 03:57:12 +0000 (03:57 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 11 Oct 2022 10:22:14 +0000 (11:22 +0100)
commitd2d69057a2c2d2e51d4b5ea27fea2e1e65a83592
tree76b69991e294503c21850a07072917b165b8dd27
parent73fa80feee65dde8cbbdacca1b76b4f3f6af62cb
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).
sim/Makefile.in
sim/moxie/local.mk