How about the following? Index: hurd/ChangeLog 2005-08-25 Alfred M. Szmidt <[EMAIL PROTECTED]>
* Makefile (MSGIDS): New variable. (all, install-msgids, $(datadir)/msgids): New targets. (install): Specify install-header and install-msgids as prerequisites. Index: hurd/Makefile =================================================================== RCS file: /cvsroot/hurd/hurd/hurd/Makefile,v retrieving revision 1.28 diff -p -u -u -r1.28 Makefile --- hurd/Makefile 22 Aug 2002 21:25:04 -0000 1.28 +++ hurd/Makefile 25 Aug 2005 18:26:08 -0000 @@ -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 -install-headers install: $(includedir)/hurd \ +all: $(MSGIDS) + +install: install-msgids install-headers +install-headers: $(includedir)/hurd \ $(addprefix $(includedir)/hurd/,$(INSTHDRS)) +install-msgids: $(MSGIDS) $(datadir)/msgids; $(INSTALL_DATA) $^ $(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