aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d327c73490563f388f40132615122bf7193db256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
EXEC_FILES = $(patsubst src/%.c,bin/%,$(wildcard src/*.c))

all: $(EXEC_FILES)

debug: python
	cd src; $(MAKE) debug

clean:
	rm -rf Resources/FileHash*
	find * -path "*~" -or -path "*/.\#*" -or -path "*.bak" | xargs rm -f
	cd src && $(MAKE) clean
	rm -f $(EXEC_FILES)

$(EXEC_FILES): bin/%: src/%
	cp -af $< $@
	chmod a+x $@

src/%: src/%.c
	$(MAKE) -C src

.PHONY: all debug clean