diff options
author | Tony Hansen <tony@att.com> | 2017-08-21 15:12:37 +0000 |
---|---|---|
committer | Tony Hansen <tony@att.com> | 2017-08-21 15:47:22 +0000 |
commit | 5ae237d3a66fa2ff063a2c364e313c35bf4ed779 (patch) | |
tree | 379c4824d0918e28ea382a3ee5aba369f9b8c772 /cdf/src/makefile | |
parent | c95796be872dc54e7bfa05d0bd59a3d7d70cd037 (diff) |
[DCAEGEN2-49] push seed code for PGaaS
Change-Id: I482a366fb3c871b9fc729fcbe8af30ac663f8fb6
Signed-off-by: Tony Hansen <tony@att.com>
Diffstat (limited to 'cdf/src/makefile')
-rw-r--r-- | cdf/src/makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/cdf/src/makefile b/cdf/src/makefile new file mode 100644 index 0000000..fdd7748 --- /dev/null +++ b/cdf/src/makefile @@ -0,0 +1,53 @@ + +DEVBIN=../../bin +PKG=cdf +REPACKAGEDEBIANOPTS= + +INS= ../install +INSSTG= $(INS)/stage +INSCOM= $(INS)/common +KEEP= + +all: + +clean-stage: + rm -rf $(INSSTG) + +clean-common: + rm -rf $(INSCOM) + +clean-ins: clean-stage clean-common + rm -rf $(INS) + +clean: clean-ins + rm -rf *~ + cd cdf-prop-value && $(MAKE) clean + +build: javadocs build-java + +build-java: + cd cdf-prop-value && $(MAKE) build + +javadocs: + cd cdf-prop-value && $(MAKE) javadocs + +stage: build clean-stage clean-common + mkdir -p $(INS) + find stage common ! -name makefile ! -name '*~' | cpio -pudmv $(INS) + cp -p cdf-prop-value/cdf-prop-value/src/main/java/cdf-prop-value.jar $(INS)/stage/opt/app/cdf/lib/cdf-prop-value-1.1.0.jar + cp -p cdf-prop-value/cdf-prop-value/src/main/java/cdf-prop-value.jar $(INS)/stage/opt/app/cdf/lib/cdf-prop-value.jar + cp -p cdf-prop-value/cdf-util/src/main/java/cdf-util.jar $(INS)/stage/opt/app/cdf/lib/jars/cdf-util-1.1.0.jar + cp -p cdf-prop-value/cdf-util/src/main/java/cdf-util.jar $(INS)/stage/opt/app/cdf/lib/jars/cdf-util.jar + chmod a+x $(INSCOM)/* + + +debian: stage + sed 's/$${RELLONG}/$(RELLONG)/' < repackage.yaml > $(INS)/repackage.yaml + repackage -b debian $(REPACKAGEDEBIANOPTS) -d $(INS) -u -M "{datetime},LATEST" -y $(INS)/repackage.yaml + @echo debian built + +upload-javadocs: javadocs + cd cdf-prop-value && find cdf-*/src/main/java/javadoc -type f | while read f; do \ + curl -k --user "$${ONAP_NEXUS_USER}:$${ONAP_NEXUS_PASSWORD}" --upload-file "$$f" "$${ONAP_NEXUS_JAVADOC}/org.onap.dcae.storage.cdf/1.1.0/$$f"; \ + done + |