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 test_reload: test_reload.icl $(wildcard *.*cl) $(INO_OBJ) $(CPM) project $@.prj build run_test: test ./test run_test_reload: test_reload while :; do ./test_reload; done clean: rm -rfv Clean\ System\ Files .PHONY: all run_test clean