Makefile 767 Bytes
Newer Older
1
2
clean:;
	mvn clean
Martin Lowe's avatar
Martin Lowe committed
3
compile-java: validate-spec generate-spec;
4
5
6
7
8
9
10
	mvn compile package
compile-java-quick: validate-spec;
	mvn compile package -Dmaven.test.skip=true
compile: clean compile-java;
compile-quick: clean compile-java-quick;
install-npm:;
	npm ci
Martin Lowe's avatar
Martin Lowe committed
11
generate-spec: install-npm;
Martin Lowe's avatar
Martin Lowe committed
12
	npm run generate-json-schema
13
validate-spec: install-npm;
Martin Lowe's avatar
Martin Lowe committed
14
	npm run test
15
16
17
18
compile-start: compile-quick;
	docker-compose down
	docker-compose build
	docker-compose up
19
20
21
22
compile-start-headless: compile-quick;
	docker-compose down
	docker-compose build
	docker-compose up -d
23
start-spec: validate-spec;
24
25
26
27
28
29
	npm run start
generate-notice-src:;
	docker run -v $(PWD)/:/project \
		-v /project/node_modules \
		-v /project/volumes \
		scancode-toolkit -clpeui --json-pp /project/result.json /project