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

all: listDevices

Mart Lubbers's avatar
Mart Lubbers committed
9 10
.SECONDARY: listDevices.prj

Mart Lubbers's avatar
Mart Lubbers committed
11 12 13
%: %.prj %.icl 
	cpm $<

Mart Lubbers's avatar
Mart Lubbers committed
14 15 16 17 18
%.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
19
	cpm project $@ path add "$$PWD/../$(DETECTED_OS)"
Mart Lubbers's avatar
Mart Lubbers committed
20
	cpm project $@ path add "$$PWD/.."