25 lines
419 B
Makefile
25 lines
419 B
Makefile
main:
|
|
g++ -I lib/ src/setopt.cpp -o setopt -g
|
|
|
|
test: test_template test_compile
|
|
|
|
run_test:
|
|
@-for i in out.d/test*; do\
|
|
./$$i; \
|
|
done
|
|
|
|
test_template:
|
|
cd tests/; \
|
|
for i in *.cpp.part; do \
|
|
m4 -Dtest=$$i test_template.cpp.m4 > $$(basename --suffix=".part" $$i); \
|
|
done
|
|
|
|
test_compile:
|
|
for i in tests/*.cpp; do \
|
|
g++ -I $$(realpath .) $$i -o out.d/$$(basename $$i); \
|
|
done
|
|
|
|
clean:
|
|
rm tests/*.cpp
|
|
rm out.d/*
|