-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (47 loc) · 1.5 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
60
61
62
63
COMPOSER_FLAGS=--no-ansi --verbose --no-interaction
all: build
build: composer-install \
build-documentation \
public/docs/api \
public/css/bootstrap.css \
public/packages.json \
data/examples.ttl \
public/doap.rdf \
public/js/bootstrap.bundle.min.js
composer-install: composer.phar
php composer.phar $(COMPOSER_FLAGS) install
update: clean composer.phar
php composer.phar $(COMPOSER_FLAGS) update
composer.phar:
curl -s -o composer.phar -L https://getcomposer.org/composer-stable.phar
build-documentation: composer-install
php scripts/build-documentation.php
vendor/easyrdf/easyrdf/docs/api:
make -C vendor/easyrdf/easyrdf apidocs
public/docs/api: vendor/easyrdf/easyrdf/docs/api
cp -Rf vendor/easyrdf/easyrdf/docs/api public/docs/
public/css/bootstrap.css: scss/bootstrap-custom.scss
php scripts/compile-scss.php
public/js/bootstrap.bundle.min.js: vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js
cp -fp $^ $@
vendor/easyrdf/easyrdf/doap.rdf:
make -C vendor/easyrdf/easyrdf doap.rdf
public/doap.rdf: vendor/easyrdf/easyrdf/doap.rdf
cp -fp $^ $@
public/packages.json:
php scripts/build-packages-data.php
data/examples.ttl:
php scripts/build-example-data.php
clean:
rm -f composer.phar
rm -Rf vendor/
rm -Rf public/docs/api
rm -f public/docs/*.html
rm -f public/css/bootstrap.css
rm -f public/doap.rdf
rm -f public/js/bootstrap-collapse.js
rm -f public/packages.json
rm -f data/*.ttl
rm -f logs/*
rm -Rf tmp/twig/*
.PHONY: all build update clean