summaryrefslogtreecommitdiffstats
path: root/cgreen/Makefile
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-02-14 00:05:58 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-02-14 00:05:58 +0200
commite70cefc12fb897f7221f7b1bc6fe0ce595eb2de1 (patch)
tree6a6426204c0c27589e0b210daab89dbc998d55af /cgreen/Makefile
parentffc425603dcbedf0da1d6aa1759f8f14f3a5e841 (diff)
Add cgreen unit test library and makefile
Diffstat (limited to 'cgreen/Makefile')
-rw-r--r--cgreen/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/cgreen/Makefile b/cgreen/Makefile
new file mode 100644
index 0000000000..6b31a3f923
--- /dev/null
+++ b/cgreen/Makefile
@@ -0,0 +1,38 @@
+# This Makefile ensures that the build is made out of source in a subdirectory called 'build'
+# If it doesn't exist, it is created and a Makefile created there (from Makefile.build)
+#
+# This Makefile also contains delegation of the most common make commands
+#
+# If you have cmake installed you should be able to do:
+#
+# make
+# make test
+# make install
+# make package
+#
+# That should build cgreen for C and C++, run some tests, install it locally and
+# generate two distributable packages.
+
+all: build
+ cd $(CGREEN_BUILD_DIR); make all
+
+test: build
+ cd $(CGREEN_BUILD_DIR); make test
+
+clean: build
+ cd $(CGREEN_BUILD_DIR); make clean
+
+package: build
+ cd $(CGREEN_BUILD_DIR); make package
+
+install:
+ cd $(CGREEN_BUILD_DIR); make install
+
+############# Internal
+
+build:
+ mkdir -p $(CGREEN_BUILD_DIR)
+ cp Makefile.build $(CGREEN_BUILD_DIR)/Makefile
+
+
+.SILENT: