~ubuntu-branches/ubuntu/utopic/hockeypuck/utopic-proposed

« back to all changes in this revision

Viewing changes to charms/trusty/hockeypuck/Makefile

  • Committer: Package Import Robot
  • Author(s): Casey Marshall
  • Date: 2014-04-13 20:06:01 UTC
  • Revision ID: package-import@ubuntu.com-20140413200601-oxdlqn1gy0x8m55u
Tags: 1.0~rel20140413+7a1892a~trusty
Hockeypuck 1.0 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
MAKEDIR := $(shell pwd)
 
3
 
 
4
release:
 
5
        rm hooks/install
 
6
        sed 's/%%REPO%%/ppa/' hooks/install.pkg > hooks/install
 
7
        chmod +x hooks/install
 
8
 
 
9
unstable:
 
10
        rm hooks/install
 
11
        sed 's/%%REPO%%/unstable/' hooks/install.pkg > hooks/install
 
12
        chmod +x hooks/install
 
13
 
 
14
dev: files/hockeypuck files/instroot.tar.gz files/debian.tar.gz
 
15
        rm hooks/install
 
16
        cp hooks/install.dev hooks/install
 
17
        chmod +x hooks/install
 
18
 
 
19
files/hockeypuck:
 
20
        go build -o $@ github.com/hockeypuck/hockeypuck/cmd/hockeypuck
 
21
 
 
22
files/instroot.tar.gz:
 
23
        cd ../../../instroot; tar cvf $(MAKEDIR)/files/instroot.tar .
 
24
        cd ../../../instroot-extra; tar rvf $(MAKEDIR)/files/instroot.tar .
 
25
        gzip -9 files/instroot.tar
 
26
 
 
27
files/debian.tar.gz:
 
28
        cd ../../../debian; tar cvf $(MAKEDIR)/files/debian.tar .
 
29
        gzip -9 files/debian.tar
 
30
 
 
31
clean:
 
32
        $(RM) files/hockeypuck files/instroot.tar.gz files/debian.tar.gz
 
33
 
 
34
.PHONY: all clean