[SCM] juce/master: install target

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Thu Jan 21 21:11:12 UTC 2016


The following commit has been merged in the master branch:
commit 080c8f3be530922f711dd2b2544cb3fce743c35d
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Thu Jan 21 21:22:41 2016 +0100

    install target

diff --git a/debian/libbuilder/Makefile b/debian/libbuilder/Makefile
index fab6cb7..bc490fa 100644
--- a/debian/libbuilder/Makefile
+++ b/debian/libbuilder/Makefile
@@ -1,12 +1,15 @@
-# Automatically generated makefile, created by the Introjucer
-# Don't edit this file! Your changes will be overwritten when you re-save the Introjucer project!
+# build a dynamic library for juce
+prefix = /usr/local
+libdir = $(prefix)/lib
+includedir = $(prefix)/include
 
 # (this disables dependency generation if multiple architectures are set)
 DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)
 
 empty=
 
-MODULES_PATH=../../modules
+JUCE_PATH=../..
+MODULES_PATH=$(JUCE_PATH)/modules
 
 SOURCES=juce_audio_basics.cpp \
 	juce_audio_devices.cpp \
@@ -102,7 +105,7 @@ TARGET := libjuce.so
 
 OBJECTS=$(SOURCES:%.cpp=$(OBJDIR)/%.o)
 
-.PHONY: clean install test
+.PHONY: clean install install-lib install-headers test
 
 $(OUTDIR)/$(TARGET): $(OBJECTS) $(RESOURCES)
 	@echo Linking juce_dll
@@ -117,6 +120,18 @@ clean:
 	@echo Cleaning juce_dll
 	rm -rf build
 
+install-lib: $(OUTDIR)/$(TARGET)
+	@echo Installing juce_dll
+	install -d $(DESTDIR)$(libdir)
+	install -m664 $^ $(DESTDIR)$(libdir)/libjuce.so
+install-headers:
+	@echo Installing juce_dll
+	install -d $(DESTDIR)$(includedir)/juce
+	cd $(JUCE_PATH) && find modules/ -type f -name "juce_*.h" -exec cp --parent {} $(DESTDIR)$(includedir)/juce \;
+	cd $(JUCE_PATH) && find modules/juce_box2d/box2d/ -type f -name "*.h" -exec cp --parent {} $(DESTDIR)$(includedir)/juce \;
+
+install: install-headers install-lib
+
 -include $(OBJECTS:%.o=%.d)
 
 test:

-- 
juce packaging



More information about the pkg-multimedia-commits mailing list