forked from csplib/csplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
build: ./internal/scripts/env creation_dates
# activate virtual python environment
. ./internal/scripts/env/bin/activate && \
./internal/scripts/framework/generate_web_site.py
# built website
.PHONY: creation_dates
creation_dates:
./internal/scripts/support/problem_creation_dates.sh
./internal/scripts/env:
# create virtual python Environment
./internal/scripts/support/setup.sh
serve:
# open http://localhost:8000 in your browser
# Crtl-C to finish
cd _deploy && python3 -m http.server
build_for_gh_pages: ./internal/scripts/env
./internal/scripts/support/build_for_gh_pages.sh
# built website
# Build specific problems and serve locally
.PHONY: only
only: ./internal/scripts/env creation_dates only_build serve
# to use a comma in $(subst you need to put it in a variable
comma :=,
only_build:
. ./internal/scripts/env/bin/activate && \
./internal/scripts/framework/generate_web_site.py $(subst ${comma}, ,${build})
debug:
. ./internal/scripts/env/bin/activate && \
ipython --pdb ./internal/scripts/framework/generate_web_site.py -- --debug $(subst ${comma}, ,${build})
clean:
rm -rf _deploy
rm -rf internal/scripts/env