-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile
72 lines (48 loc) · 1.53 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# refers to the definition of a release target
BRAND ?= ./branding/test.mk
include ${BRAND}
# refers to the definition of the release process execution environment
BUILDENV ?=./env/test.mk
include ${BUILDENV}
# refers to whereabouts of code-signing keys
# CREDENTIAL ?=./credentials/test.mk
include ${CREDENTIAL}
include ./setup.mk
PACKAGE_BUILDER_VERSION:=0.1
#######################################################
clean:
rm -rf ${TARGET}
setup:
bash -ex -c 'for f in */setup.sh; do $$f; done'
package: war deb rpm suse
publish: war.publish deb.publish rpm.publish suse.publish
test: deb.test rpm.test suse.test
war: ${WAR}
war.publish: ${WAR}
./war/publish/publish.sh
deb: ${DEB}
${DEB}: ${WAR} $(shell find deb/build -type f)
./deb/build/build.sh
deb.publish: ${DEB} $(shell find deb/publish -type f)
./deb/publish/publish.sh
rpm: ${RPM}
${RPM}: ${WAR} $(shell find rpm/build -type f)
./rpm/build/build.sh
rpm.publish: ${RPM} $(shell find rpm/publish -type f)
./rpm/publish/publish.sh
suse: ${SUSE}
${SUSE}: ${WAR} $(shell find suse/build -type f)
./suse/build/build.sh
suse.publish: ${SUSE} $(shell find suse/publish -type f)
./suse/publish/publish.sh
msi.publish:
./msi/publish/publish.sh
${CLI}:
@mkdir ${TARGET} || true
wget -O [email protected] ${JENKINS_URL}jnlpJars/jenkins-cli.jar
mv [email protected] $@
test.local.setup:
# start a test Apache server that acts as package server
# we'll refer to this as 'test.pkg.jenkins.io'
@mkdir -p ${TESTDIR} || true
docker run --rm -t -i -p 9200:80 -v ${TESTDIR}:/var/www/html fedora/apache