Skip to content

Commit 1f653c9

Browse files
committed
Make all build targets phony
None of these refer to an actual file on disk, so we better mark them as `.PHONY`.
1 parent 30b606e commit 1f653c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ sm_built_path := $(sm_site)/$(sm_docset)
1919
.PHONY: all
2020
all: clean pre-build build post-build test
2121

22+
.PHONY: pre-build
2223
pre-build:
2324
cd src && python fix_html.py
2425

26+
.PHONY: build
2527
build:
2628
# Shared
2729
mkdir -p $(out_folder)
@@ -33,6 +35,7 @@ build:
3335
cd $(sm_site) && dashing build
3436
mv $(sm_built_path) $(out_folder)
3537

38+
.PHONY: post-build
3639
post-build:
3740
cd src && python fix_index.py
3841

@@ -43,6 +46,7 @@ clean:
4346
[ -f "$(sm_site)/dashing.json" ] && rm $(sm_site)/dashing.json || true
4447
git restore --recurse-submodules $(st_submodule) $(sm_submodule)
4548

49+
.PHONY: zip
4650
zip:
4751
cd $(out_folder) && tar -czvf $(st_docset).tgz $(st_docset)
4852
cd $(out_folder) && tar -czvf $(sm_docset).tgz $(sm_docset)
@@ -51,5 +55,6 @@ zip:
5155
test:
5256
cd test && python -m unittest
5357

58+
.PHONY: install-linux
5459
install-linux:
5560
cp -r $(out_folder)/* $(install_path_linux)

0 commit comments

Comments
 (0)