Starting point for ODL Integration
[genesis.git] / fuel / build / f_jre / Makefile
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # daniel.smith@ericsson.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 TOP := $(shell pwd)
11 include ../config.mk
12
13 PACKAGE := openjdk-8-jre
14 VERSION := 8u40~b09-1_amd64
15 DEB_NAME := $(PACKAGE)_$(VERSION).deb
16
17 .PHONY: all
18 all:    release/pool/main/$(DEB_NAME)
19
20 release/pool/main/$(DEB_NAME):
21 ifeq ($(JAVA_MAIN_REPO),)
22         @echo "No config-spec target for Java, nothing to build"
23 else
24         @mkdir -p release/pool/main && \
25         cd release/pool/main && \
26         wget -N $(JAVA_MAIN_REPO)/$(DEB_NAME)
27 endif
28
29 .PHONY: clean
30 clean:
31         @rm -rf release
32         @rm -f $(DEB_DEST)/$(DEB_NAME)
33
34
35 .PHONY: release
36 release:release/pool/main/$(DEB_NAME)
37 ifneq ($(JAVA_MAIN_REPO),)
38         @cp release/pool/main/$(DEB_NAME) $(DEB_DEST)
39         @cp -Rvp puppet/modules/* $(PUPPET_DEST)
40 endif
41