-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
35 lines (28 loc) · 972 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
# Makefile for plastid
#
# Run in project folder, not source folder.
date := $(shell date +%Y-%m-%d)
help:
@echo "plastid make help"
@echo " "
@echo "Please use \`make <target>\`, choosing <target> from the following:"
@echo " dist to make HTML documentation and eggs for distribution"
@echo " docs to make HTML documentation"
@echo " cleandoc to remove previous generated documentation components"
@echo " clean to remove everything previously built"
@echo " "
docs/source/class_substitutions.txt :
mkdir -p docs/source
docs/bin/get_class_substitutions plastid plastid
mv plastid_substitutions.txt docs/source/class_substitutions.txt
docs/build/html : docs/source/class_substitutions.txt
$(MAKE) html -C docs
docs : | docs/build/html
cleandoc :
rm -rf docs/build
rm -rf docs/source/generated
rm -rf docs/class_substitutions.txt
clean : cleandoc
rm -rf dist
rm -rf build
.PHONY : docs dist clean cleandoc help