1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
14 PACKAGE := openjdk-8-jdk
15 VERSION := 8u40~b09-1_amd64
16 DEB_NAME := $(PACKAGE)_$(VERSION).deb
19 all: release/pool/main/$(DEB_NAME)
21 release/pool/main/$(DEB_NAME):
22 ifeq ($(JAVA_MAIN_REPO),)
23 @echo "No config-spec target for Java, nothing to build"
25 @mkdir -p release/pool/main && \
26 cd release/pool/main && \
27 wget -N $(JAVA_MAIN_REPO)/$(DEB_NAME)
28 @lintian release/pool/main/$(DEB_NAME)
34 @rm -f $(DEB_DEST)/$(DEB_NAME)
38 release:release/pool/main/$(DEB_NAME)
39 ifneq ($(JAVA_MAIN_REPO),)
40 @cp release/pool/main/$(DEB_NAME) $(DEB_DEST)
41 @cp -Rvp puppet/modules/* $(PUPPET_DEST)