[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch to close task #1017
From: |
Alfred M. Szmidt |
Subject: |
Re: patch to close task #1017 |
Date: |
Thu, 25 Aug 2005 21:06:59 +0200 |
How about the following?
Index: hurd/ChangeLog
2005-08-25 Alfred M. Szmidt <ams@gnu.org>
* 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' $<; \
Re: patch to close task #1017, Alfred M. Szmidt, 2005/08/05