aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--abstractions/Makefile112
-rw-r--r--abstractions/Makefile.dirs30
-rw-r--r--abstractions/README8
-rw-r--r--packages/Makefile34
-rw-r--r--packages/Makefile.dirs39
5 files changed, 150 insertions, 73 deletions
diff --git a/abstractions/Makefile b/abstractions/Makefile
index 03a7263a..9366098d 100644
--- a/abstractions/Makefile
+++ b/abstractions/Makefile
@@ -20,11 +20,11 @@ include Makefile.dirs
final_setup:
chmod -R ugo-w $(INSTALL_PREFIX)
-objects: $(OBJECTS_DST) $(DOCS_DST) $(MANUALS_DST)
+objects: $(OBJECTS_DEST) $(DOCS_DEST) $(MANUALS_DEST)
objects: objects_memento objects_nusmuk objects_rradical objects_keyboardkeys
objects: objects_gyre objects_la-kitchen objects_nqpoly
-applications: $(APPLICATIONS_DST) $(MANUALS_DST)
+applications: $(APPLICATIONS_DEST) $(MANUALS_DEST)
applications: applications_rradical applications_keyboardkeys applications_gyre
@@ -34,115 +34,115 @@ applications: applications_rradical applications_keyboardkeys applications_gyre
#------------------------------
# GYRE
objects_gyre:
- install -d $(OBJECTS_DST)/gyre
+ install -d $(OBJECTS_DEST)/gyre
install -p $(ABSTRACTIONS_SRC)/audionerd/GYRE/gyre.*.pd \
- $(OBJECTS_DST)/gyre
- install -d $(MANUALS_DST)/gyre
+ $(OBJECTS_DEST)/gyre
+ install -d $(MANUALS_DEST)/gyre
install -p $(ABSTRACTIONS_SRC)/audionerd/GYRE/gyre.html \
- $(MANUALS_DST)/gyre
+ $(MANUALS_DEST)/gyre
applications_gyre:
- install -d $(APPLICATIONS_DST)/gyre
+ install -d $(APPLICATIONS_DEST)/gyre
install -p $(ABSTRACTIONS_SRC)/audionerd/GYRE/gyre.pd \
- $(APPLICATIONS_DST)/GYRE
+ $(APPLICATIONS_DEST)/GYRE
#------------------------------
# keyboardkeys
objects_keyboardkeys:
- install -d $(OBJECTS_DST)/keyboardkeys
+ install -d $(OBJECTS_DEST)/keyboardkeys
install -p $(ABSTRACTIONS_SRC)/keyboardkeys/keyboardkeys/*.pd \
- $(OBJECTS_DST)/keyboardkeys
- install -d $(DOCS_DST)/keyboardkeys
+ $(OBJECTS_DEST)/keyboardkeys
+ install -d $(DOCS_DEST)/keyboardkeys
install -p $(ABSTRACTIONS_SRC)/keyboardkeys/doc/*-help.pd \
- $(DOCS_DST)/keyboardkeys
+ $(DOCS_DEST)/keyboardkeys
applications_keyboardkeys:
- install -d $(APPLICATIONS_DST)/keyboardkeys
+ install -d $(APPLICATIONS_DEST)/keyboardkeys
install -p $(ABSTRACTIONS_SRC)/keyboardkeys/keyboard_main.pd \
- $(APPLICATIONS_DST)/keyboardkeys
+ $(APPLICATIONS_DEST)/keyboardkeys
#------------------------------
# la-kitchen
objects_la-kitchen:
- install -d $(OBJECTS_DST)/la-kitchen
+ install -d $(OBJECTS_DEST)/la-kitchen
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/La-kitchen/*.pd | \
- grep -v '\-help.pd') $(OBJECTS_DST)/la-kitchen
- install -d $(DOCS_DST)/la-kitchen
+ grep -v '\-help.pd') $(OBJECTS_DEST)/la-kitchen
+ install -d $(DOCS_DEST)/la-kitchen
install -p $(ABSTRACTIONS_SRC)/La-kitchen/*-help.pd \
- $(DOCS_DST)/la-kitchen
- install -d $(MANUALS_DST)/la-kitchen
+ $(DOCS_DEST)/la-kitchen
+ install -d $(MANUALS_DEST)/la-kitchen
install -p $(ABSTRACTIONS_SRC)/La-kitchen/readme.txt \
- $(MANUALS_DST)/la-kitchen
+ $(MANUALS_DEST)/la-kitchen
#------------------------------
# memento
objects_memento:
- install -d $(OBJECTS_DST)/memento
+ install -d $(OBJECTS_DEST)/memento
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/rradical/memento/*.pd | \
- grep -v '\-help.pd') $(OBJECTS_DST)/memento
- install -d $(DOCS_DST)/memento
- install -p $(ABSTRACTIONS_SRC)/rradical/memento/*-help.pd $(DOCS_DST)/memento
- install -d $(MANUALS_DST)/memento
+ grep -v '\-help.pd') $(OBJECTS_DEST)/memento
+ install -d $(DOCS_DEST)/memento
+ install -p $(ABSTRACTIONS_SRC)/rradical/memento/*-help.pd $(DOCS_DEST)/memento
+ install -d $(MANUALS_DEST)/memento
install -p $(ABSTRACTIONS_SRC)/rradical/memento/tutorial/*.* \
- $(MANUALS_DST)/memento
- install -d $(APPLICATIONS_DST)/memento_tutorial
+ $(MANUALS_DEST)/memento
+ install -d $(APPLICATIONS_DEST)/memento_tutorial
install -p $(ABSTRACTIONS_SRC)/rradical/memento/examples/*.* \
- $(APPLICATIONS_DST)/memento_tutorial
+ $(APPLICATIONS_DEST)/memento_tutorial
#------------------------------
# nqpoly
objects_nqpoly:
- install -d $(OBJECTS_DST)/nqpoly~
+ install -d $(OBJECTS_DEST)/nqpoly~
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/nqpoly/nqpoly~/*.pd | \
- grep -v '\-help.pd') $(OBJECTS_DST)/nqpoly~
- install -d $(OBJECTS_DST)/nqpoly4
+ grep -v '\-help.pd') $(OBJECTS_DEST)/nqpoly~
+ install -d $(OBJECTS_DEST)/nqpoly4
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/nqpoly/nqpoly4/*.pd | \
- grep -v '\-help.pd') $(OBJECTS_DST)/nqpoly4
- install -d $(DOCS_DST)/nqpoly~
- install -p $(ABSTRACTIONS_SRC)/nqpoly/nqpoly~/*.pd $(DOCS_DST)/nqpoly~
- install -d $(DOCS_DST)/nqpoly4
- install -p $(ABSTRACTIONS_SRC)/nqpoly/nqpoly4/*.pd $(DOCS_DST)/nqpoly4
- install -d $(MANUALS_DST)/nqpoly
- install -p $(ABSTRACTIONS_SRC)/nqpoly/*.html $(MANUALS_DST)/nqpoly
+ grep -v '\-help.pd') $(OBJECTS_DEST)/nqpoly4
+ install -d $(DOCS_DEST)/nqpoly~
+ install -p $(ABSTRACTIONS_SRC)/nqpoly/nqpoly~/*.pd $(DOCS_DEST)/nqpoly~
+ install -d $(DOCS_DEST)/nqpoly4
+ install -p $(ABSTRACTIONS_SRC)/nqpoly/nqpoly4/*.pd $(DOCS_DEST)/nqpoly4
+ install -d $(MANUALS_DEST)/nqpoly
+ install -p $(ABSTRACTIONS_SRC)/nqpoly/*.html $(MANUALS_DEST)/nqpoly
install -p $(ABSTRACTIONS_SRC)/nqpoly/nqpoly~/readme.txt \
- $(MANUALS_DST)/nqpoly/nqpoly~.txt
- install -d $(APPLICATIONS_DST)/nqpoly~
+ $(MANUALS_DEST)/nqpoly/nqpoly~.txt
+ install -d $(APPLICATIONS_DEST)/nqpoly~
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/nqpoly/nqpoly~/*.pd | \
- grep -v '\-help.pd') $(APPLICATIONS_DST)/nqpoly~
- install -d $(APPLICATIONS_DST)/nqpoly4
+ grep -v '\-help.pd') $(APPLICATIONS_DEST)/nqpoly~
+ install -d $(APPLICATIONS_DEST)/nqpoly4
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/nqpoly/nqpoly4/*.pd | \
- grep -v '\-help.pd') $(APPLICATIONS_DST)/nqpoly4
+ grep -v '\-help.pd') $(APPLICATIONS_DEST)/nqpoly4
#------------------------------
# nusmuk
objects_nusmuk:
- install -d $(OBJECTS_DST)/nusmuk
+ install -d $(OBJECTS_DEST)/nusmuk
install -p $(shell ls -1 $(ABSTRACTIONS_SRC)/nusmuk/*.* | \
- grep -v '\-help.pd') $(OBJECTS_DST)/nusmuk
- install -d $(DOCS_DST)/nusmuk
- install -p $(ABSTRACTIONS_SRC)/nusmuk/*-help.pd $(DOCS_DST)/nusmuk
+ grep -v '\-help.pd') $(OBJECTS_DEST)/nusmuk
+ install -d $(DOCS_DEST)/nusmuk
+ install -p $(ABSTRACTIONS_SRC)/nusmuk/*-help.pd $(DOCS_DEST)/nusmuk
#------------------------------
# parazit
- install -d $(OBJECTS_DST)
- install -p $(ABSTRACTIONS_SRC)/parazit/parazit.pd $(OBJECTS_DST)
+ install -d $(OBJECTS_DEST)
+ install -p $(ABSTRACTIONS_SRC)/parazit/parazit.pd $(OBJECTS_DEST)
#------------------------------
# RRADical
objects_rradical:
- install -d $(OBJECTS_DST)/rradical
+ install -d $(OBJECTS_DEST)/rradical
applications_rradical:
- install -d $(APPLICATIONS_DST)/RRADical
- install -p $(ABSTRACTIONS_SRC)/rradical/usecases/*.* $(APPLICATIONS_DST)/RRADical
- cp -rp $(ABSTRACTIONS_SRC)/rradical/usecases/showcase $(APPLICATIONS_DST)/RRADical/
+ install -d $(APPLICATIONS_DEST)/RRADical
+ install -p $(ABSTRACTIONS_SRC)/rradical/usecases/*.* $(APPLICATIONS_DEST)/RRADical
+ cp -rp $(ABSTRACTIONS_SRC)/rradical/usecases/showcase $(APPLICATIONS_DEST)/RRADical/
#------------------------------------------------------------------------------#
# DEVELOPER'S TARGETS
@@ -162,15 +162,15 @@ devsymlinks_keyboardkeys:
# CLEAN TARGETS
#------------------------------------------------------------------------------#
objects_clean:
- -rm -rf $(OBJECTS_DST) $(DOCS_DST)
+ -rm -rf $(OBJECTS_DEST) $(DOCS_DEST)
applications_clean:
- -rm -rf $(APPLICATIONS_DST)
+ -rm -rf $(APPLICATIONS_DEST)
clean: applications_clean objects_clean
-rm -f *~
- rm -rf $(MANUALS_DST)
+ rm -rf $(MANUALS_DEST)
rmdir $(DOCS_BASE) $(INSTALL_PREFIX)
diff --git a/abstractions/Makefile.dirs b/abstractions/Makefile.dirs
index 9dc451bf..6933557e 100644
--- a/abstractions/Makefile.dirs
+++ b/abstractions/Makefile.dirs
@@ -1,4 +1,8 @@
-#
+
+# this file should be exactly the same in each section of the CVS. A copy is
+# kept in each section of the CVS so that each section will be
+# self-sufficient. <hans@at.or.at>
+
# $(INSTALL_PREFIX) and $(SRC_ROOT_DIR) are set in Makefile
# base
@@ -10,10 +14,10 @@ DOCS_SRC = $(SRC_ROOT_DIR)/doc
EXTERNALS_SRC = $(SRC_ROOT_DIR)/externals
# destinations
-APPLICATIONS_DST = $(DOCS_BASE)/examples
-OBJECTS_DST = $(INSTALL_PREFIX)/extra
-DOCS_DST = $(DOCS_BASE)/5.reference
-MANUALS_DST = $(DOCS_BASE)/manuals
+APPLICATIONS_DEST = $(DOCS_BASE)/examples
+OBJECTS_DEST = $(INSTALL_PREFIX)/extra
+DOCS_DEST = $(DOCS_BASE)/5.reference
+MANUALS_DEST = $(DOCS_BASE)/manuals
#------------------------------------------------------------------------------#
# DIRECTORY STRUCTURE TARGETS
@@ -22,14 +26,14 @@ MANUALS_DST = $(DOCS_BASE)/manuals
$(INSTALL_PREFIX):
install -d $(INSTALL_PREFIX)
-$(APPLICATIONS_DST): $(INSTALL_PREFIX)
- install -d $(APPLICATIONS_DST)
+$(APPLICATIONS_DEST): $(INSTALL_PREFIX)
+ install -d $(APPLICATIONS_DEST)
-$(OBJECTS_DST): $(INSTALL_PREFIX)
- install -d $(OBJECTS_DST)
+$(OBJECTS_DEST): $(INSTALL_PREFIX)
+ install -d $(OBJECTS_DEST)
-$(DOCS_DST): $(INSTALL_PREFIX)
- install -d $(DOCS_DST)
+$(DOCS_DEST): $(INSTALL_PREFIX)
+ install -d $(DOCS_DEST)
-$(MANUALS_DST): $(INSTALL_PREFIX)
- install -d $(MANUALS_DST)
+$(MANUALS_DEST): $(INSTALL_PREFIX)
+ install -d $(MANUALS_DEST)
diff --git a/abstractions/README b/abstractions/README
index d2ecf324..e6c16ebf 100644
--- a/abstractions/README
+++ b/abstractions/README
@@ -36,7 +36,7 @@ but we need to gather experience how this should look like before.
Explanations of Terms
=====================
-$(APPLICATIONS_DST):
+$(APPLICATIONS_DEST):
If your project is an application or patch that is meant to be run
directly, then it should go into this directory in its own subdirectory.
This directory is a browsable collection of applications. If your
@@ -45,7 +45,7 @@ $(APPLICATIONS_DST):
good example of this. This is the only place were mixed or upper case is
appropriate in directory names.
-$(OBJECTS_DST):
+$(OBJECTS_DEST):
If your project consists of objects that are meant to be reused in other
patches rather than used as a application, then they should go into this
directory.
@@ -56,14 +56,14 @@ $(OBJECTS_DST):
The subdirectory name (e.g. mylibrary) should always be all lowercase.
-$(DOCS_DST):
+$(DOCS_DEST):
All help patches should go into this directory in a subdirectory with the
same nameas the subdirectory for your objects. For example, for
[mylibrary/myobject] above, the helpfile would be "mylibrary/myobject-help.pd".
The subdirectory name (e.g. mylibrary) should always be all lowercase.
-$(MANUALS_DST):
+$(MANUALS_DEST):
If you have any other kinds of documentation, like a text or HTML manual,
or a Pd-based tutorial, then it should go into this directory, again in a
subdirectory with the same name as the library or application. Using the
diff --git a/packages/Makefile b/packages/Makefile
new file mode 100644
index 00000000..8580e4f9
--- /dev/null
+++ b/packages/Makefile
@@ -0,0 +1,34 @@
+#
+#
+#
+
+# these are setup to be overridden by the packages/*/Makefiles
+SRC_ROOT_DIR := $(shell pwd)/..
+INSTALL_PREFIX = $(SRC_ROOT_DIR)/packages/build
+
+# default target
+all: abstractions
+
+include Makefile.dirs
+
+DST_PATHS = APPLICATIONS_DEST=$(APPLICATIONS_DEST) \
+ OBJECTS_DEST=$(OBJECTS_DEST) \
+ DOCS_DEST=$(DOCS_DEST) \
+ MANUALS_DEST=$(MANUALS_DEST)
+
+#------------------------------------------------------------------------------#
+# BUILD TARGETS
+#------------------------------------------------------------------------------#
+abstractions:
+ make -f $(ABSTRACTIONS_SRC)/Makefile $(DST_PATHS)
+
+#------------------------------------------------------------------------------#
+# CLEAN TARGETS
+#------------------------------------------------------------------------------#
+abstractions_clean:
+ make -f $(ABSTRACTIONS_SRC)/Makefile $(DST_PATHS) clean
+
+clean: abstractions_clean
+ -rm -f *~
+ rm -rf $(MANUALS_DEST)
+ rmdir $(DOCS_BASE) $(INSTALL_PREFIX)
diff --git a/packages/Makefile.dirs b/packages/Makefile.dirs
new file mode 100644
index 00000000..6933557e
--- /dev/null
+++ b/packages/Makefile.dirs
@@ -0,0 +1,39 @@
+
+# this file should be exactly the same in each section of the CVS. A copy is
+# kept in each section of the CVS so that each section will be
+# self-sufficient. <hans@at.or.at>
+
+# $(INSTALL_PREFIX) and $(SRC_ROOT_DIR) are set in Makefile
+
+# base
+DOCS_BASE = $(INSTALL_PREFIX)/doc
+
+# sources
+ABSTRACTIONS_SRC = $(SRC_ROOT_DIR)/abstractions
+DOCS_SRC = $(SRC_ROOT_DIR)/doc
+EXTERNALS_SRC = $(SRC_ROOT_DIR)/externals
+
+# destinations
+APPLICATIONS_DEST = $(DOCS_BASE)/examples
+OBJECTS_DEST = $(INSTALL_PREFIX)/extra
+DOCS_DEST = $(DOCS_BASE)/5.reference
+MANUALS_DEST = $(DOCS_BASE)/manuals
+
+#------------------------------------------------------------------------------#
+# DIRECTORY STRUCTURE TARGETS
+#------------------------------------------------------------------------------#
+# first make sure that the directory structure is setup
+$(INSTALL_PREFIX):
+ install -d $(INSTALL_PREFIX)
+
+$(APPLICATIONS_DEST): $(INSTALL_PREFIX)
+ install -d $(APPLICATIONS_DEST)
+
+$(OBJECTS_DEST): $(INSTALL_PREFIX)
+ install -d $(OBJECTS_DEST)
+
+$(DOCS_DEST): $(INSTALL_PREFIX)
+ install -d $(DOCS_DEST)
+
+$(MANUALS_DEST): $(INSTALL_PREFIX)
+ install -d $(MANUALS_DEST)