summaryrefslogtreecommitdiff
path: root/include/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-03-11 08:43:36 +0000
committerRoland McGrath <roland@gnu.org>2002-03-11 08:43:36 +0000
commit28b130459c170df9ca02fcfd52602bd08bf59803 (patch)
tree05fbdefd06a28c95ae78c8ca0dd00e2f070b89b5 /include/Makefile
parent80e304ccdbc8be46ff41b1a708786f14d34c0e14 (diff)
2002-03-10 Roland McGrath <roland@frob.com>
* sys/procfs.h: New file, specifies ELF core file format details. * Makefile (installhdrs): New variable, list sys/procfs.h here. (LCLHDRS): New variable, replaces ... (DIST_FILES): ... this one, removed. (install-headers, $(includedir)/%: $(srcdir)/%): New target and pattern rule to install headers.
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/Makefile b/include/Makefile
index f4113d99..d56f640f 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,5 +1,6 @@
-#
-# Copyright (C) 1996 Free Software Foundation, Inc.
+# Makefile for include subdirectory.
+#
+# Copyright (C) 1996,2002 Free Software Foundation, Inc.
# Written by Michael I. Bushnell, p/BSG.
#
# This file is part of the GNU Hurd.
@@ -21,7 +22,13 @@
dir := include
makemode := misc
-DIST_FILES = $(notdir $(wildcard $(srcdir)/*.h))
+installhdrs := sys/procfs.h
+
+LCLHDRS := $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/*.h $(srcdir)/*/*.h))
include ../Makeconf
+install-headers: $(installhdrs:%=$(includedir)/%)
+$(includedir)/%: $(srcdir)/%
+ @$(MKINSTALLDIRS) $(@D)
+ $(INSTALL_DATA) $< $@