summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-16 19:57:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-16 19:57:48 (GMT)
commita2e0cf9108081663607706f661f411a5fcf86e1d (patch)
tree65f2a01f8d91c6d8a87f4720512534caa2430010 /Swiften
parent9bc8ddaf40d73647944592385bf56ece41046846 (diff)
downloadswift-contrib-a2e0cf9108081663607706f661f411a5fcf86e1d.zip
swift-contrib-a2e0cf9108081663607706f661f411a5fcf86e1d.tar.bz2
Make Swift compilation optional.
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