1 |
# Copyright (C) 1993,94,95,96,99,2002 Free Software Foundation |
# Copyright (C) 1993,94,95,96,99,2002,2005 Free Software Foundation |
2 |
# |
# |
3 |
# This program is free software; you can redistribute it and/or |
# This program is free software; you can redistribute it and/or |
4 |
# modify it under the terms of the GNU General Public License as |
# modify it under the terms of the GNU General Public License as |
22 |
|
|
23 |
INSTHDRS = hurd_types.h version.h ioctl_types.h paths.h shared.h console.h \ |
INSTHDRS = hurd_types.h version.h ioctl_types.h paths.h shared.h console.h \ |
24 |
$(notdir $(wildcard $(srcdir)/*.defs)) |
$(notdir $(wildcard $(srcdir)/*.defs)) |
25 |
|
MSGIDS := hurd.msgids $(patsubst %.defs,%.msgids,$(filter %.defs,$(INSTHDRS))) |
26 |
|
|
27 |
include ../Makeconf |
include ../Makeconf |
28 |
|
|
29 |
install-headers install: $(includedir)/hurd \ |
all: $(MSGIDS) |
30 |
|
|
31 |
|
install: install-msgids install-headers |
32 |
|
install-headers: $(includedir)/hurd \ |
33 |
$(addprefix $(includedir)/hurd/,$(INSTHDRS)) |
$(addprefix $(includedir)/hurd/,$(INSTHDRS)) |
34 |
|
install-msgids: $(MSGIDS) $(datadir)/msgids; $(INSTALL_DATA) $^ |
35 |
|
|
36 |
$(includedir)/hurd/%: $(srcdir)/%; $(INSTALL_DATA) $< $@ |
$(includedir)/hurd/%: $(srcdir)/%; $(INSTALL_DATA) $< $@ |
37 |
|
|
38 |
$(includedir)/hurd:;mkdir -p $@ |
$(datadir)/msgids $(includedir)/hurd:;mkdir -p $@ |
39 |
|
|
40 |
%.msgids: $(srcdir)/%.defs |
%.msgids: $(srcdir)/%.defs |
41 |
if grep -q '^subsystem' $<; \ |
if grep -q '^subsystem' $<; \ |