mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 09:05:10 +00:00
Add in makefile to call the compilation and liniting Only the applications and contracts currently Testing needs to follow Change-Id: I5604a71ea025cd01a1f27968122ea119697db7a5 Signed-off-by: Matthew B. White <whitemat@uk.ibm.com>
17 lines
No EOL
755 B
Makefile
17 lines
No EOL
755 B
Makefile
.PHONY: all
|
|
|
|
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
all: digibank magnetocorp
|
|
|
|
digibank:
|
|
cd ${ROOT_DIR}/../organization/$@/application-java; mvn clean compile package
|
|
cd ${ROOT_DIR}/../organization/$@/contract-java; ./gradlew clean build shadowJar
|
|
cd ${ROOT_DIR}/../organization/$@/application; npm install && npm run lint
|
|
cd ${ROOT_DIR}/../organization/$@/contract; npm install && npm run lint
|
|
|
|
magnetocorp:
|
|
cd ${ROOT_DIR}/../organization/$@/application-java; mvn clean compile package
|
|
cd ${ROOT_DIR}/../organization/$@/contract-java; ./gradlew clean build shadowJar
|
|
cd ${ROOT_DIR}/../organization/$@/application; npm install && npm run lint
|
|
cd ${ROOT_DIR}/../organization/$@/contract; npm install && npm run lint
|