summaryrefslogtreecommitdiffstats
path: root/quantum/serial_link/cgreen/Makefile
blob: 6b31a3f92329ac5d24c77a05af48609bf8f522ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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: