mirror of
https://github.com/matrix-construct/construct
synced 2024-06-02 01:59:33 +02:00
configure: Fix includedir and install path related.
This commit is contained in:
parent
023167b440
commit
2aafbaff5c
|
@ -984,6 +984,13 @@ dnl
|
||||||
AC_SUBST_DIR([bindir])
|
AC_SUBST_DIR([bindir])
|
||||||
RB_DEFINE_UNQUOTED([BIN_DIR], ["$bindir"], [Directory where binary executables are to be found.])
|
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
|
||||||
dnl libdir
|
dnl libdir
|
||||||
dnl
|
dnl
|
||||||
|
|
|
@ -50,6 +50,8 @@ endif
|
||||||
|
|
||||||
DEPS = *.h */*.h */*/*.h */*/*/*.h
|
DEPS = *.h */*.h */*/*.h */*/*/*.h
|
||||||
|
|
||||||
|
# includedir = @includedir@/$(PACKAGE_TARNAME)
|
||||||
|
includedir = @includedir@/ircd
|
||||||
nobase_include_HEADERS = $(DEPS)
|
nobase_include_HEADERS = $(DEPS)
|
||||||
noinst_HEADERS = *.gch
|
noinst_HEADERS = *.gch
|
||||||
|
|
||||||
|
@ -69,3 +71,18 @@ clean-local:
|
||||||
rm -f ircd.pic.h.gch
|
rm -f ircd.pic.h.gch
|
||||||
rm -f spirit.h.gch
|
rm -f spirit.h.gch
|
||||||
rm -f *.gch.tmp
|
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
|
||||||
|
|
Loading…
Reference in a new issue