summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorAlfred M. Szmidt <ams@gnu.org>2012-09-22 23:49:31 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-09-22 23:49:31 +0200
commit131ce3a37dc93eaa62f3b7643772afa9276ed2d5 (patch)
tree4483d0daf878005562660bb5e49c453568b04b02 /hurd
parent1cb18e1e0de4873f98c58e23e1ed133c3914272f (diff)
Install .msgids files to datadir.
* Makefile (MSGIDS): New variable. (all, install-msgids, $(datadir)/msgids): New targets. (install): Specify install-header and install-msgids as prerequisites.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/hurd/Makefile b/hurd/Makefile
index 1cc14fa7..4273ff3d 100644
--- a/hurd/Makefile
+++ b/hurd/Makefile
@@ -21,15 +21,20 @@ hdrs = $(wildcard $(srcdir)/*.defs $(srcdir)/*.h)
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' $<; \