-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (31 loc) · 885 Bytes
/
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
# File Names
NAME = ROUST
file = src
# Symbolic Targets
help:
@echo "Use the following commands:"
@echo "make all create files and build the project"
@echo "make pdfr create the project environment"
@echo "make clean remove all files"
all: build
build:
@rm -rf docs && mkdir docs
@cd src && ./make.bat clean && ./make.bat html
@cp -R src/build/html/* docs && touch docs/.nojekyll
@echo "Documentation built and copied to docs"
pdfw:
@rm -rf pdf && mkdir pdf
@cd src && ./make.bat clean && sphinx-build -M latexpdf source ../pdf
@echo "PDF built and copied to docs"
@make build
pdfx:
@rm -rf pdf && mkdir pdf
@cd src && ./make.bat clean && sphinx-build -b pdf source build
@cp src/build/*.pdf pdf && cd src && ./make.bat clean
@echo "PDF built and copied to docs"
@make build
clean:
@rm -rf docs
@rm -rf pdf
@rm -rf src
@echo "All files removed"