Updates docs for SR1 with final revision
[genesis.git] / fuel / build / f_example_packadd / 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 PACKAGE := foobar
13 VERSION := 1.0-1
14 DEB_NAME := $(PACKAGE)_$(VERSION).deb
15
16 .PHONY: all
17 all:    release/pool/main/$(DEB_NAME)
18
19 release/pool/main/$(DEB_NAME):
20         @mkdir -p tmp/src
21         @mkdir -p release/pool/main
22         @cp -r $(DEB_NAME) tmp/src
23         @gzip -9 tmp/src/$(DEB_NAME)/usr/share/doc/$(PACKAGE)/changelog.Debian
24         @fakeroot dpkg-deb --build tmp/src/$(DEB_NAME)
25         @lintian tmp/src/$(DEB_NAME)
26         @cp tmp/src/$(DEB_NAME) release/pool/main
27
28 .PHONY: clean
29 clean:
30         @rm -rf tmp
31         @rm -rf release
32         @rm -f ../release/packages/ubuntu/pool/main/$(DEB_NAME)
33
34 .PHONY: validate-cache
35 validate-cache:
36         @echo "No cache validation schema available for $(shell pwd)"
37         @echo "Continuing ..."
38
39 .PHONY: release
40 release:release/pool/main/$(DEB_NAME)
41         @cp release/pool/main/$(DEB_NAME) $(DEB_DEST)
42         @cp -Rvp puppet/modules/* $(PUPPET_DEST)