forked from jenkinsci/packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (38 loc) · 1.1 KB
/
Makefile
File metadata and controls
58 lines (38 loc) · 1.1 KB
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
# 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
publish: war.publish deb.publish rpm.publish
test: deb.test rpm.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
msi.publish:
./msi/publish/publish.sh
${CLI}:
@mkdir ${TARGET} || true
wget -O $@.tmp ${JENKINS_URL}jnlpJars/jenkins-cli.jar
mv $@.tmp $@