forked from ga4gh/ga4gh-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 1.07 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
# GA4GH top level Makefile (requires GNU make)
.DELETE_ON_ERROR:
.PHONY : FORCE
.PRECIOUS :
.SUFFIXES :
SHELL:=/bin/bash -o pipefail
SELF:=$(firstword $(MAKEFILE_LIST))
BUILD_DIR:=target/doc
############################################################################
#= BASIC USAGE
default: help
#=> help -- display this help message
.PHONY: help
help:
@tools/makefile-extract-documentation "${SELF}"
#=> docs -- make docs (in build/html)
# N.B. this command mimics behavior on RTD
# doc/source is the root of the rst files; the ../.. components effectively
# counter the cd doc/source to place the docs at the schemas root
.PHONY: docs
docs:
cd doc/source; sphinx-build -b html -d ../../${BUILD_DIR}/doctrees . ../../${BUILD_DIR}/html
#=> docs-schema -- generate rst files from avdl
docs-schemas:
make -C doc/source/schemas default
.PHONY: package
package:
mvn package
.PHONY: clean cleaner cleanest
clean:
find . -regex '.*\(~\|\.bak\)' -print0 | xargs -0r /bin/rm -v
cleaner: clean
cleanest: cleaner
find . -regex '.*\(\.orig\)' -print0 | xargs -0r /bin/rm -v
rm -fr target