Roland, OK to commit?

hurd/ChangeLog
2005-08-05  Alfred M. Szmidt  <[EMAIL PROTECTED]>

        * Makefile (MSGIDS): New variable.
        (all): New target.
        (install-headers, install): Depend on `install-msgids'.
        (install-msgids): New target
        ($(datadir)/msgids): New target.

--- hurd/Makefile       22 Aug 2002 23:25:04 +0200      1.28
+++ hurd/Makefile       05 Aug 2005 20:44:20 +0200      
@@ -1,4 +1,4 @@
-#   Copyright (C) 1993,94,95,96,99,2002 Free Software Foundation
+#   Copyright (C) 1993,94,95,96,99,2002,2005 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
@@ -22,15 +22,20 @@ DIST_FILES = subsystems $(notdir $(hdrs)
 
 INSTHDRS = hurd_types.h version.h ioctl_types.h paths.h shared.h console.h \
        $(notdir $(wildcard $(srcdir)/*.defs))
+MSGIDS := hurd.msgids $(patsubst %.defs,%.msgids,$(filter %.defs,$(INSTHDRS)))
 
 include ../Makeconf
 
+all: $(MSGIDS)
+
 install-headers install: $(includedir)/hurd \
-       $(addprefix $(includedir)/hurd/,$(INSTHDRS))
+       $(addprefix $(includedir)/hurd/,$(INSTHDRS)) install-msgids
+
+install-msgids: $(MSGIDS); $(INSTALL_DATA) $^ $(datadir)/msgids
 
 $(includedir)/hurd/%: $(srcdir)/%; $(INSTALL_DATA) $< $@
 
-$(includedir)/hurd:;mkdir -p $@
+$(datadir)/msgids $(includedir)/hurd:;mkdir -p $@
 
 %.msgids: $(srcdir)/%.defs
        if grep -q '^subsystem' $<; \


_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to