summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-14 01:06:47 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-14 01:06:47 +0000
commit73574d231840ed967fb7b06c48a542e9b57fe57f (patch)
treef91715b1afe0f56dc1c57e7afca6158b0e93ec24 /hurd
parent24cd4d39025695c0723a811ae70def08204bb423 (diff)
Rewritten to get the right things installed in the right places.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/hurd/Makefile b/hurd/Makefile
index 392234be..d6e71075 100644
--- a/hurd/Makefile
+++ b/hurd/Makefile
@@ -19,13 +19,16 @@ dir := hurd
makemode := misc
hdrs = $(wildcard $(srcdir)/*.defs $(srcdir)/*.h)
-DIST_FILES = subsystems $(hdrs)
-LCLHDRS = hurd_types.h ioctl_types.h paths.h shared.h version.h
+DIST_FILES = subsystems $(notdir $(hdrs))
+
+INSTHDRS = hurd_types.h ioctl_types.h paths.h shared.h version.h
+ $(notdir $(wildcard $(srcdir)/*.defs))
include ../Makeconf
-# XXX not ideal
install-hdrs install: $(includedir)/hurd \
- $(patsubst $(srcdir)/%,$(includedir)/hurd/%,$(hdrs))
+ $(addprefix $(includedir)/hurd,$(INSTHDRS))
+
$(includedir)/hurd/%: $(srcdir)/%; $(INSTALL_DATA) $< $@
+
$(includedir)/hurd:;mkdir -p $@