summaryrefslogtreecommitdiffstats
path: root/gnu/lib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-29 12:01:52 +0000
committerobrien <obrien@FreeBSD.org>2000-01-29 12:01:52 +0000
commit03a87d3c200dde73eacb1c4ca7858a1b72086ffa (patch)
treee951f2bcfe826b099456b509d2488689ecc8daf9 /gnu/lib
parent904db0db42529233893f0efdc618ef76c7bc1dff (diff)
downloadFreeBSD-src-03a87d3c200dde73eacb1c4ca7858a1b72086ffa.zip
FreeBSD-src-03a87d3c200dde73eacb1c4ca7858a1b72086ffa.tar.gz
Move the header installation down into `readline' which is the subsystem
the headers are part of.
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libreadline/Makefile13
-rw-r--r--gnu/lib/libreadline/readline/Makefile7
2 files changed, 8 insertions, 12 deletions
diff --git a/gnu/lib/libreadline/Makefile b/gnu/lib/libreadline/Makefile
index 3165032..637dcc8 100644
--- a/gnu/lib/libreadline/Makefile
+++ b/gnu/lib/libreadline/Makefile
@@ -2,15 +2,4 @@
SUBDIR = history readline
-SRCDIR= ${.CURDIR}/../../../contrib/libreadline
-
-INSTALLED_HEADERS= readline.h chardefs.h keymaps.h history.h tilde.h \
- rlstdc.h rlconf.h
-
-beforeinstall:
-.for i in ${INSTALLED_HEADERS}
- ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${SRCDIR}/$i \
- ${DESTDIR}/usr/include/readline
-.endfor
-
-.include <bsd.prog.mk>
+.include <bsd.subdir.mk>
diff --git a/gnu/lib/libreadline/readline/Makefile b/gnu/lib/libreadline/readline/Makefile
index e539fb8..740104a 100644
--- a/gnu/lib/libreadline/readline/Makefile
+++ b/gnu/lib/libreadline/readline/Makefile
@@ -12,7 +12,14 @@ SRCS= readline.c vi_mode.c funmap.c keymaps.c parens.c search.c \
nls.c xmalloc.c \
$(HISTSRC) $(TILDESRC)
+INSTALLED_HEADERS= readline.h chardefs.h keymaps.h history.h tilde.h \
+ rlstdc.h rlconf.h
+
DPADD+= $(LIBTERMCAP)
LDADD+= -ltermcap
+.for hdr in ${INSTALLED_HEADERS}
+INCS+= ${SRCDIR}/${hdr}
+.endfor
+
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud