| 1 | ############################################################################### |
| 2 | # name: makefile |
| 3 | # desc: unit testing for ChucK programming language |
| 4 | # |
| 5 | # ChucK website: https://chuck.stanford.edu/ |
| 6 | # source repository: https://github.com/ccrma/chuck/ |
| 7 | ############################################################################### |
| 8 | .PHONY: all |
| 9 | all: test |
| 10 | |
| 11 | |
| 12 | ############################## RUN UNIT TEST ################################## |
| 13 | .PHONY: test |
| 14 | test: |
| 15 | ifneq (,$(wildcard ../chuck ../chuck.exe)) |
| 16 | ./test.py ../chuck . |
| 17 | else |
| 18 | @echo "no chuck executable found in 'src/'...(hint: make in 'src/')" |
| 19 | endif |
| 20 | |
| 21 | |
| 22 | ############################## CLEAN UP ####################################### |
| 23 | .PHONY: clean |
| 24 | clean: |
| 25 | @echo "removing generated test files..." |
| 26 | @rm -f 03-Modules/01-file-io.bin 03-Modules/08-write-read-op.txt \ |
| 27 | 03-Modules/09-write-output.txt 03-Modules/file.bin \ |