Starting point for ODL Integration
[genesis.git] / fuel / build / f_atk_wrap / 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 := libatk-wrapper-java
14 VERSION := 0.30.4-4_all
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 ($(ATK_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 $(ATK_MAIN_REPO)/$(DEB_NAME)
27         @lintian release/pool/main/$(DEB_NAME)
28 endif
29
30 .PHONY: clean
31 clean:
32         @rm -rf release
33         @rm -f $(DEB_DEST)/$(DEB_NAME)
34
35
36 .PHONY: release
37 release:release/pool/main/$(DEB_NAME)
38 ifneq ($(ATK_MAIN_REPO),)
39         @cp release/pool/main/$(DEB_NAME) $(DEB_DEST)
40         @cp -Rvp puppet/modules/* $(PUPPET_DEST)
41 endif
42