Skip to content

Commit

Permalink
add .PHONY to test and ckdoc makefile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Jul 20, 2024
1 parent 98c811d commit b7e3aa6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/scripts/ckdoc/makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
###############################################################################
# name: makefile
# desc: CK Doc / API Reference generation for ChucK programming language
# desc: API Reference generation (using CKDoc) for ChucK
#
# ChucK website: https://chuck.stanford.edu/
# source repository: https://github.com/ccrma/chuck/
#
# currently live API Reference:
# API Reference: https://chuck.stanford.edu/doc/reference/
# API Reference: https://chuck.stanford.edu/doc/reference/
###############################################################################
all: doc

all: ckdoc

############################## RUN UNIT TEST ##################################
ckdoc:
########################## GENERATE API REFERENCE #############################
.PHONY: doc ckdoc
doc ckdoc:
ifneq (,$(wildcard ../../chuck ../../chuck.exe))
@echo "generating ChucK API reference using ckdoc..."
../../chuck gen-all.ck
Expand All @@ -22,6 +23,7 @@ endif


############################## CLEAN UP #######################################
.PHONY: clean
clean:
@echo "removing generated API reference files..."
@rm -f *.css *.html *.json
4 changes: 3 additions & 1 deletion src/test/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
# ChucK website: https://chuck.stanford.edu/
# source repository: https://github.com/ccrma/chuck/
###############################################################################

.PHONY: all
all: test


############################## RUN UNIT TEST ##################################
.PHONY: test
test:
ifneq (,$(wildcard ../chuck ../chuck.exe))
./test.py ../chuck .
Expand All @@ -19,6 +20,7 @@ endif


############################## CLEAN UP #######################################
.PHONY: clean
clean:
@echo "removing generated test files..."
@rm -f 03-Modules/01-file-io.bin 03-Modules/08-write-read-op.txt \
Expand Down

0 comments on commit b7e3aa6

Please sign in to comment.