Makefile 518 Bytes
Newer Older
Camil Staps's avatar
Camil Staps committed
1 2 3 4 5 6 7 8 9 10 11 12 13
CPM=cpm
CCFLAGS=-Wall -l -linotify
INO_OBJ=Clean\ System\ Files/inotify_c.o

all: test

$(INO_OBJ): inotify_c.c
	mkdir -p Clean\ System\ Files
	$(CC) $(CCFLAGS) -c $< -o Clean\ System\ Files/inotify_c.o

test: test.icl $(wildcard *.*cl) $(INO_OBJ)
	$(CPM) project $@.prj build

14 15 16
test_reload: test_reload.icl $(wildcard *.*cl) $(INO_OBJ)
	$(CPM) project $@.prj build

Camil Staps's avatar
Camil Staps committed
17 18 19
run_test: test
	./test

20 21 22
run_test_reload: test_reload
	while :; do ./test_reload; done

Camil Staps's avatar
Camil Staps committed
23 24 25 26
clean:
	rm -rfv Clean\ System\ Files

.PHONY: all run_test clean