Starting point for ODL Integration
[genesis.git] / fuel / build / f_ca_cert / Makefile
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 ##############################################################################
10
11 TOP := $(shell pwd)
12 include ../config.mk
13
14 PACKAGE := ca-certificates
15 VERSION := 20130906ubuntu2_all
16 DEB_NAME := $(PACKAGE)_$(VERSION).deb
17
18 .PHONY: all
19 all:    release/pool/main/$(DEB_NAME)
20
21 release/pool/main/$(DEB_NAME):
22 ifeq ($(CERT_MAIN_REPO),)
23         @echo "No config-spec target for Java, nothing to build"
24 else
25         @mkdir -p release/pool/main && \
26         cd release/pool/main && \
27         wget -N $(CERT_MAIN_REPO)/$(DEB_NAME)
28         @lintian release/pool/main/$(DEB_NAME)
29 endif
30
31 .PHONY: clean
32 clean:
33         @rm -rf release
34         @rm -f $(DEB_DEST)/$(DEB_NAME)
35
36
37 .PHONY: release
38 release:release/pool/main/$(DEB_NAME)
39 ifneq ($(CERT_MAIN_REPO),)
40         @cp release/pool/main/$(DEB_NAME) $(DEB_DEST)
41         @cp -Rvp puppet/modules/* $(PUPPET_DEST)
42 endif