From 8d551125801b05b49817b1f193ea82c9740b6c42 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 23 May 2002 20:14:46 +0000 Subject: 2002-05-23 Roland McGrath * Makefile (%.msgids, hurd.msgids): New rules. --- hurd/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hurd/Makefile b/hurd/Makefile index 1b133aaa..078c80ab 100644 --- a/hurd/Makefile +++ b/hurd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 1993, 94, 95, 96, 99 Free Software Foundation +# Copyright (C) 1993,94,95,96,99,2002 Free Software Foundation # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -33,7 +33,12 @@ $(includedir)/hurd/%: $(srcdir)/%; $(INSTALL_DATA) $< $@ $(includedir)/hurd:;mkdir -p $@ - +%.msgids: $(srcdir)/%.defs + if grep -q '^subsystem' $<; \ + then $(CPP) $(CPPFLAGS) $< | $(MIGCOM) -n -list $@; \ + else > $@; fi +hurd.msgids: $(patsubst %.defs,%.msgids,$(filter %.defs,$(INSTHDRS))) + cat $^ > $@ # # The following rules assist in creating an `Xioctl.defs' file -- cgit v1.2.3