summaryrefslogtreecommitdiffstats
path: root/quantum/serial_link/cgreen/Makefile
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-07-05 22:27:47 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-07-05 22:27:47 +0200
commit639cdd363e35c13fe331939d0972aa4db5f5198d (patch)
treefe30e1b4e2aba61b3a9db42b281c7e18acf548de /quantum/serial_link/cgreen/Makefile
parent7d28d6a7bc81578bb5a83f1d55810ee3d1458e96 (diff)
parenta20d513e3cdacbf6e0e70a80402497ad10166434 (diff)
downloadqmk_firmware-639cdd363e35c13fe331939d0972aa4db5f5198d.tar.gz
qmk_firmware-639cdd363e35c13fe331939d0972aa4db5f5198d.tar.xz
Add 'quantum/serial_link/' from commit 'a20d513e3cdacbf6e0e70a80402497ad10166434'
git-subtree-dir: quantum/serial_link git-subtree-mainline: 7d28d6a7bc81578bb5a83f1d55810ee3d1458e96 git-subtree-split: a20d513e3cdacbf6e0e70a80402497ad10166434
Diffstat (limited to 'quantum/serial_link/cgreen/Makefile')
-rw-r--r--quantum/serial_link/cgreen/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/quantum/serial_link/cgreen/Makefile b/quantum/serial_link/cgreen/Makefile
new file mode 100644
index 000000000..6b31a3f92
--- /dev/null
+++ b/quantum/serial_link/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: