gde4onos/Makefile

20 lines
516 B
Makefile

artifactId := $(shell cat pom.xml | grep artifactId | head -1 | cut -d\> -f2 | cut -d\< -f1)
version := $(shell cat pom.xml | grep version | grep -v '<?xml' | head -1 | cut -d\> -f2 | cut -d\< -f1)
plugin.oar: build
cp target/${artifactId}-${version}.oar plugin.oar
build:
mvn clean compile test package install
test:
mvn test
clean:
mvn clean
-rm plugin.oar
initial_codegen:
mvn archetype:generate -DarchetypeGroupId=org.onosproject -DarchetypeArtifactId=onos-bundle-archetype -DarchetypeVersion=2.2.2