summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--Makefrag.am15
-rw-r--r--Makerules.am8
3 files changed, 31 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a55337a..ac82fdc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-10-18 Thomas Schwinge <tschwinge@gnu.org>
+
+ Install `PREFIX/share/msgids/gnumach.msgids'.
+ * Makerules.am (%.msgids): Two new rules.
+ * Makefrag.am (MOSTLYCLEANFILES): Add `gnumach.msgids'.
+ (gnumach.msgids): New rule.
+ (exec_msgidsdir, exec_msgids_DATA): New variables.
+
2006-10-16 Thomas Schwinge <tschwinge@gnu.org>
* configure: Regenerate.
diff --git a/Makefrag.am b/Makefrag.am
index 4c28904..652e324 100644
--- a/Makefrag.am
+++ b/Makefrag.am
@@ -319,6 +319,21 @@ nodist_libkernel_a_SOURCES += \
# kern/mach4.server.defs
# kern/mach_debug.server.defs
# kern/mach_host.server.defs
+
+# rpctrace can make use of that.
+MOSTLYCLEANFILES += \
+ gnumach.msgids
+gnumach.msgids: $(nodist_lib_dep_tr_for_defs_a_SOURCES)
+ rm -f gnumach.msgids
+ for f in $(nodist_lib_dep_tr_for_defs_a_SOURCES); do \
+ f=`expr "$$f" : '\(.*\)\.defs\.c'`.msgids && \
+ $(MAKE) $(AM_MAKEFLAGS) "$$f" && \
+ cat "$$f" >> $@ || { rm -f $@; false; } \
+ done
+# `exec_' prefix, so that we don't try to build that file during when running
+# `make install-data', as it may fail there, but isn't needed there either.
+exec_msgidsdir = $(datadir)/msgids
+exec_msgids_DATA = gnumach.msgids
#
# Architecture specific parts.
diff --git a/Makerules.am b/Makerules.am
index 742df19..f571043 100644
--- a/Makerules.am
+++ b/Makerules.am
@@ -49,10 +49,18 @@
-sheader $*.server.h -server $*.server.c \
-user /dev/null -header /dev/null \
< $<
+%.msgids: lib_dep_tr_for_defs_a-%.server.defs.$(OBJEXT)
+ $(MIGCOM) $(MIGCOMFLAGS) \
+ -n -list $@ \
+ < $<
%.user.h %.user.c: lib_dep_tr_for_defs_a-%.user.defs.$(OBJEXT)
$(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMUFLAGS) \
-user $*.user.c -server /dev/null -header $*.user.h \
< $<
+%.msgids: lib_dep_tr_for_defs_a-%.user.defs.$(OBJEXT)
+ $(MIGCOM) $(MIGCOMFLAGS) \
+ -n -list $@ \
+ < $<
# TODO. Get rid of the .srv files and rather use .defs files and MIG*SFLAGS?
%.server.defs: %.srv