From fd755c04f1ffd507e9a576fc525f78388aaa5ddc Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 31 Aug 2003 15:23:04 +0000 Subject: makefile now creates MacOS X pkgs; no need for GUI .pmsp files svn path=/trunk/; revision=909 --- doc/Makefile | 52 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 14 deletions(-) (limited to 'doc/Makefile') diff --git a/doc/Makefile b/doc/Makefile index 0c109586..1639bc7c 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,20 +1,44 @@ -current: darwin_package +# Created by Hans-Christoph Steiner to generate MacOS X packages +# This Makefile does not generate a PDDP pkg, PDDP has its own Makefile + +current: darwin_pkg clean: -rm -Rf installroot *~ */*~ */*/*~ */*/*/*~ -darwin_package: - chmod a-x */*/*/*.pd +PDDOC_VERSION = $(shell date +20%y.%m.%d) +PACKAGE_NAME = pd-doc-$(PDDOC_VERSION) + +darwin_pkg_license: + # generate HTML version of License +# echo "" > License.html +# cat ../../creb/COPYING | sed -e 's/^$$/\/g' >> License.html +# echo "" >> License.html + +darwin_pkg_welcome: +# generate Welcome.html from ../README.txt + +darwin_pkg_clean: + -sudo rm -Rf installroot/ pd-doc*.pkg/ + -rm -f pd-doc-*.info 1 License.html Welcome.???* + +# install into MSP's default: /usr/local/lib + +darwin_pkg: darwin_pkg_clean darwin_pkg_license darwin_pkg_welcome +# set up installroot dir + -chmod a-x */*/*.pd */*/*/*.pd */*/*/*/*.pd test -d installroot/pd/doc/7.stuff || mkdir -p installroot/pd/doc/7.stuff - cp -a tutorials installroot/pd/doc/ - cp -a additional/pd-msg installroot/pd/doc/7.stuff/ - -rm -Rf installroot/pd/doc/*/CVS installroot/pd/doc/*/*/CVS - -rm -Rf installroot/pd/doc/*/*/*/CVS - open darwin_package.pmsp - -darwin_altpackage: -# this needs some figuring out, what goes where... - chmod a-x */*/*/*.pd - test -d installroot/Help || mkdir -p installroot/Help - open darwin_altpackage.pmsp + cp -R tutorials installroot/pd/doc/ + cp -R additional/pd-msg installroot/pd/doc/7.stuff/ + cp -f pd-doc.info $(PACKAGE_NAME).info +# delete cruft + -find installroot -name .DS_Store -delete + -sudo rm -Rf installroot/*/*/*/CVS installroot/*/*/*/*/CVS installroot/*/*/*/*/*/CVS + -rm -f 1 +# set proper permissions + sudo chown -R root:staff installroot + package installroot $(PACKAGE_NAME).info -d . -ignoreDSStore +# install pkg docs +# install -m 644 License.html $(PACKAGE_NAME).pkg/Contents/Resources + sudo chown -R root:staff $(PACKAGE_NAME).pkg/Contents/Resources -- cgit v1.2.1