Change the install* targets in the Makefiles to honour DESTDIR. This

makes packaging the client for .deb and .rpm easier.

Reported separately by nyet and VICODAN.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@164 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-05-08 14:34:25 +00:00
parent cb0c2aabc2
commit 7ee26d4ed3
26 changed files with 57 additions and 52 deletions

View File

@@ -196,19 +196,19 @@ dllinit.o:
)
install: all
$(INSTALL) -d $(PLUGINDIR)
$(INSTALL) -d $(DESTDIR)$(PLUGINDIR)
@( \
makeflags=$$2; \
target="$@"; \
list="$(PLUGINS)"; \
for subdir in $$list; do \
(cd $$subdir && $(MAKE) $$target) \
(cd $$subdir && $(MAKE) 'DESTDIR=$(DESTDIR)' $$target) \
|| case "$$makeflags" in *=*) exit 1;; *k*) ;; *) exit 1;; esac; \
done; \
)
@( \
if test x"$(PLUGINS)" != x""; then \
strip --strip-unneeded $(PLUGINDIR)/*$(SHLIB_SUFFIX) || :; \
strip --strip-unneeded $(DESTDIR)$(PLUGINDIR)/*$(SHLIB_SUFFIX) || :; \
echo Your plugins [$(PLUGINS)] are now located in $(PLUGINDIR);\
fi; \
)