Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ sm_built_path := $(sm_site)/$(sm_docset)
.PHONY: all
all: clean pre-build build post-build test

.PHONY: pre-build
pre-build:
cd src && python fix_html.py

.PHONY: build
build:
# Shared
mkdir -p $(out_folder)
Expand All @@ -33,6 +35,7 @@ build:
cd $(sm_site) && dashing build
mv $(sm_built_path) $(out_folder)

.PHONY: post-build
post-build:
cd src && python fix_index.py

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

.PHONY: zip
zip:
cd $(out_folder) && tar -czvf $(st_docset).tgz $(st_docset)
cd $(out_folder) && tar -czvf $(sm_docset).tgz $(sm_docset)
Expand All @@ -51,5 +55,6 @@ zip:
test:
cd test && python -m unittest

.PHONY: install-linux
install-linux:
cp -r $(out_folder)/* $(install_path_linux)
Loading