0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Fix includedir and install path related.

This commit is contained in:
Jason Volk 2019-07-12 16:28:09 -07:00
parent 023167b440
commit 2aafbaff5c
2 changed files with 24 additions and 0 deletions

View file

@ -984,6 +984,13 @@ dnl
AC_SUBST_DIR([bindir])
RB_DEFINE_UNQUOTED([BIN_DIR], ["$bindir"], [Directory where binary executables are to be found.])
dnl
dnl includedir
dnl
AC_SUBST_DIR([includedir])
RB_DEFINE_UNQUOTED([INCLUDE_DIR], ["$includedir"], [Prefix where headers are installed.])
dnl
dnl libdir
dnl

View file

@ -50,6 +50,8 @@ endif
DEPS = *.h */*.h */*/*.h */*/*/*.h
# includedir = @includedir@/$(PACKAGE_TARNAME)
includedir = @includedir@/ircd
nobase_include_HEADERS = $(DEPS)
noinst_HEADERS = *.gch
@ -69,3 +71,18 @@ clean-local:
rm -f ircd.pic.h.gch
rm -f spirit.h.gch
rm -f *.gch.tmp
install-mkdirs: $(DEPS) spirit.h.gch ircd.pic.h.gch ircd.h.gch
-@if test ! -d $(DESTDIR)$(includedir); then \
echo "mkdir -p $(DESTDIR)$(includedir)"; \
mkdir -p $(DESTDIR)$(includedir); \
fi
install: install-mkdirs
@echo "ircd: installing headers"
@for i in $(srcdir)/*; do \
if [[ "$$i" != "./Makefile"* ]] && [[ "$$i" != *.h.gch ]]; then \
echo "installing $$i to $(DESTDIR)$(includedir)"; \
cp -r $$i $(DESTDIR)$(includedir); \
fi \
done