summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Makefile.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/Swiften/Makefile.inc b/Swiften/Makefile.inc
index 12323db..ce14110 100644
--- a/Swiften/Makefile.inc
+++ b/Swiften/Makefile.inc
@@ -31,8 +31,11 @@ SWIFTEN_OBJECTS = \
$(BOOST_OBJECTS) \
$(ZLIB_OBJECTS) \
$(SQLITE_OBJECTS)
+SWIFTEN_HEADERS += \
+ Swiften/config.h
TARGETS += $(SWIFTEN_TARGET)
+INSTALL_TARGETS += install-swiften
UNITTEST_LIBS += $(SWIFTEN_TARGET)
CLEANFILES += $(SWIFTEN_TARGET) $(SWIFTEN_OBJECTS)
@@ -42,5 +45,12 @@ lib: $(SWIFTEN_TARGET)
$(SWIFTEN_TARGET): $(SWIFTEN_OBJECTS)
$(QUIET_AR)$(AR) $(ARFLAGS) $@ $(SWIFTEN_OBJECTS)
+.PHONY: install-swiften
+install-swiften: $(SWIFTEN_TARGET) $(SWIFTEN_HEADERS)
+ install -d $(includedir)/Swiften/3rdParty
+ rsync -a 3rdParty/Boost/boost $(includedir)/Swiften/3rdParty/Boost
+ for header in $(SWIFTEN_HEADERS); do headerdir=$(includedir)/`dirname $$header`; echo $$header install -d $$headerdir; install $$header $$headerdir; done
+ install $(SWIFTEN_TARGET) $(libdir)
+
include Swiften/QA/Makefile.inc
include Swiften/Examples/Makefile.inc