summaryrefslogtreecommitdiff
path: root/Makerules.mig.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules.mig.am')
-rw-r--r--Makerules.mig.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makerules.mig.am b/Makerules.mig.am
index 3060984..085b247 100644
--- a/Makerules.mig.am
+++ b/Makerules.mig.am
@@ -88,6 +88,16 @@ lib_dep_tr_for_defs_a_CPPFLAGS = $(AM_CPPFLAGS) \
-list $*.user.msgids \
< $<
+vpath %.defs $(top_srcdir)
+
+# Stand-alone rule to generate the list of message ids when neither
+# the client nor the server stubs are required.
+%.msgids: %.defs
+ $(MIGCOM_V) $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -E $< \
+ | $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMSFLAGS) \
+ -sheader /dev/null -server /dev/null \
+ -list "$*.msgids"
+
# This is how it should be done, but this is not integrated into GNU Automake
# and is missing automatic inter-file dependency management because of that.