Makefile 347 Bytes
Newer Older
Mart Lubbers's avatar
Mart Lubbers committed
1
2
3
4
5
6
7
8
9
10
11
ifeq ($(OS), Windows_NT)
DETECTED_OS=Windows
else
DETECTED_OS=POSIX
endif

all: listDevices

%: %.prj %.icl 
	cpm $<

Mart Lubbers's avatar
Mart Lubbers committed
12
13
14
15
16
%.prj:
	cpm project $(basename $@) create
	cpm project $@ target iTasks
	cpm project $@ set -h 2000m -s 20m -dynamics
	cpm project $@ root ..
Mart Lubbers's avatar
Mart Lubbers committed
17
	cpm project $@ path add "$$PWD/../$(DETECTED_OS)"
Mart Lubbers's avatar
Mart Lubbers committed
18
	cpm project $@ path add "$$PWD/.."