aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
Diffstat (limited to 'externals')
-rw-r--r--externals/build/darwin/makefile43
1 files changed, 36 insertions, 7 deletions
diff --git a/externals/build/darwin/makefile b/externals/build/darwin/makefile
index 43918c2e..e0f51b38 100644
--- a/externals/build/darwin/makefile
+++ b/externals/build/darwin/makefile
@@ -7,8 +7,8 @@ all: link.stamp $(EXTERNALS:.c=.pd_darwin)
.SUFFIXES: .pd_darwin
-PDEXECUTABLE = /usr/local/bin/pd
-# or ../../../pd/bin/pd
+#PDEXECUTABLE = /usr/local/bin/pd
+PDEXECUTABLE = ../../../pd/bin/pd
MACOSXCFLAGS = -DPD -Os -DUNIX -DMACOSX -Dunix \
-Wall -W \
@@ -30,9 +30,38 @@ clean:
-rm -rf root *.pkg
-rm link.stamp
-install-doc:
+install-doc:
test -d $(prefix)/doc/5.reference || mkdir -p $(prefix)/doc/5.reference
- cp -r ../doc/* $(prefix)/doc/5.reference
+ install -m444 ../../OSCx/doc/*.pd \
+ ../../ann/examples/*.pd \
+ ../../ann/examples/*.som \
+ ../../aenv~/*.pd \
+ ../../build/*.pd \
+ ../../chaos/*.pd \
+ ../../creb/doc/*.pd \
+ ../../creb/doc/examples/*.pd \
+ ../../cxc/reference/*.pd \
+ ../../dfx/*/*.pd \
+ ../../ext13/doc/*.pd \
+ ../../ggee/*/*.pd \
+ ../../gem2pdp/*.pd \
+ ../../hcs/*.pd \
+ ../../markex/*.pd \
+ ../../maxlib/help/*.pd \
+ ../../maxlib/help/*.txt \
+ ../../motex/*.pd \
+ ../../pdogg/*/*.pd \
+ ../../plugin~/*.pd \
+ ../../rhythm_estimator/*.p? \
+ ../../susloop~/*.pd \
+ ../../svf~/*.pd \
+ ../../vbap/*.pd \
+ ../../vst/*.pd \
+ ../../zhzxh~/*.pd \
+ $(prefix)/doc/5.reference
+# [sprinkler]'s help file is generated by ./configure
+ cd ../../sprinkler && autoconf && ./configure
+ install -m444 ../../sprinkler/sprinkler-help.pd $(prefix)/doc/5.reference
install: install-doc
test -d $(prefix)/extra || mkdir -p $(prefix)/extra
@@ -69,10 +98,10 @@ darwin_pkg_clean:
# install into MSP's default: /usr/local/lib
-darwin_pkg: all darwin_pkg_clean darwin_pkg_license darwin_pkg_welcome
+darwin_pkg: DESTDIR = installroot
+darwin_pkg: all install darwin_pkg_clean darwin_pkg_license darwin_pkg_welcome
# set up installroot dir
- test -d installroot/pd/doc/5.reference/ || mkdir -p installroot/pd/doc/5.reference/
- cp -R ../doc/* installroot/pd/doc/5.reference
+# test -d installroot/pd/doc/5.reference/ || mkdir -p installroot/pd/doc/5.reference/
test -d installroot/pd/extra || mkdir -p installroot/pd/extra
install -m644 --group=staff *.pd_darwin installroot/pd/extra
cp -f pd-externals.info $(PACKAGE_NAME).info