aboutsummaryrefslogtreecommitdiff
path: root/abstractions/Makefile.dirs
diff options
context:
space:
mode:
Diffstat (limited to 'abstractions/Makefile.dirs')
-rw-r--r--abstractions/Makefile.dirs35
1 files changed, 35 insertions, 0 deletions
diff --git a/abstractions/Makefile.dirs b/abstractions/Makefile.dirs
new file mode 100644
index 00000000..9dc451bf
--- /dev/null
+++ b/abstractions/Makefile.dirs
@@ -0,0 +1,35 @@
+#
+# $(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_DST = $(DOCS_BASE)/examples
+OBJECTS_DST = $(INSTALL_PREFIX)/extra
+DOCS_DST = $(DOCS_BASE)/5.reference
+MANUALS_DST = $(DOCS_BASE)/manuals
+
+#------------------------------------------------------------------------------#
+# DIRECTORY STRUCTURE TARGETS
+#------------------------------------------------------------------------------#
+# first make sure that the directory structure is setup
+$(INSTALL_PREFIX):
+ install -d $(INSTALL_PREFIX)
+
+$(APPLICATIONS_DST): $(INSTALL_PREFIX)
+ install -d $(APPLICATIONS_DST)
+
+$(OBJECTS_DST): $(INSTALL_PREFIX)
+ install -d $(OBJECTS_DST)
+
+$(DOCS_DST): $(INSTALL_PREFIX)
+ install -d $(DOCS_DST)
+
+$(MANUALS_DST): $(INSTALL_PREFIX)
+ install -d $(MANUALS_DST)