-
-
Notifications
You must be signed in to change notification settings - Fork 200
/
Makefile
59 lines (42 loc) · 1.34 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
########################################################
# Configuration variables
all: build
build:
if ! [ -f src/config.h ]; then ./configure; fi
R CMD INSTALL -l "/tmp" --no-configure --no-byte-compile .
docs:
tools/builddocs.sh
igraph: igraph_$(VERSION).tar.gz
igraph_$(VERSION).tar.gz: docs
Rscript -e 'devtools::build(path = ".")'
#############
check: igraph_$(VERSION).tar.gz
_R_CHECK_FORCE_SUGGESTS_=0 R CMD check $<
check-cran: igraph_$(VERSION).tar.gz
_R_CHECK_FORCE_SUGGESTS_=0 R CMD check --as-cran $<
check-links: igraph_$(VERSION).tar.gz
mkdir -p html-docs
R CMD INSTALL --html --no-R --no-configure --no-inst --no-libs --no-exec --no-test-load -l html-docs $<
$(PYVENV)/bin/linkchecker html-docs/igraph/html/00Index.html ; rm -rf html-docs
check-rhub: igraph
Rscript -e 'rhub::check_for_cran()'
check-revdeps: igraph
Rscript -e 'options(width=204); revdepcheck::revdep_check(num_workers=8, quiet=F, bioc=F)'
install:
Rscript -e 'devtools::install(".")'
test:
Rscript -e 'devtools::test(".")'
clean:
@rm -rf autom4te.cache/
@rm -f config.log
@rm -f config.status
@rm -f igraph_*.tar.gz
@rm -f igraph_*.tgz
@rm -f object_files
@rm -rf version_number
@rm -rf src/*.o
@rm -rf src/*.so
distclean: clean
@rm -rf $(PYVENV)
.PHONY: all igraph force clean check check-cran check-rhub check-links install test
.NOTPARALLEL: