ci: do not error when nothing with nitunit_some
[nit.git] / contrib / neo_doxygen / Makefile
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 NITC ?= nitc
16 NITLS ?= nitls
17 NITUNIT ?= nitunit
18 NITDOC ?= nitdoc
19
20 NEO4J_DIR=/var/lib/neo4j
21 OLD_PWD=${PWD}
22
23 .PHONY: all
24 all: bin/neo_doxygen
25
26 bin/neo_doxygen: $(shell $(NITLS) -M src/neo_doxygen.nit)
27 mkdir -p bin/
28 $(NITC) src/neo_doxygen.nit -o bin/neo_doxygen
29
30 .PHONY: check
31 check:
32 $(NITUNIT) .
33
34 # Reset the local graph.
35 .PHONY: reset-neo
36 reset-neo:
37 sudo -u neo4j "${NEO4J_DIR}/bin/neo4j" stop \
38 && sudo -u neo4j rm -rf "${NEO4J_DIR}/data/graph.db" \
39 && sudo -u neo4j "${NEO4J_DIR}/bin/neo4j" start
40
41 # Regenerate the XML documents in `tests`.
42 .PHONY: tests
43 tests:
44 $(MAKE) -C tests
45
46 # Run the tests.
47 .PHONY: run-tests
48 run-tests:
49 cd ../../tests; \
50 ./tests.sh ../contrib/neo_doxygen/src/tests/neo_doxygen_*.nit ; \
51 cd "${OLD_PWD}"
52
53 .PHONY: doc
54 doc:
55 $(NITDOC) . -o doc/
56
57 .PHONY: clean
58 clean:
59 rm -rf bin/
60 rm -rf doc/