rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / developer / jenkins-core-lts / files / Makefile
blobb6090f6aa0c8a373fbe45ff3dfecbbc653532c67
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016-2017 Jim Klimov
16 # component/Makefile should set values similar to the following example:
17 #JENKINS_VERSION ?= 2.73.1
18 #JENKINS_RELEASE ?= lts
19 all: build
21 build:
23 install:
24 @case "$(DESTDIR)" in \
25 "") echo "DESTDIR must be set" >&2 ; exit 1 ;; \
26 /) echo "DESTDIR must be set and not system rootfs" >&2 ; exit 1 ;; \
27 /*) true ;; \
28 *) echo "DESTDIR must be set as an absolute path (got '$(DESTDIR)')" >&2 ; exit 1 ;; \
29 esac
30 @[ -n "$(JENKINS_VERSION)" ] || { echo "JENKINS_VERSION not set" >&2; exit 1; }
31 @[ -n "$(JENKINS_RELEASE)" ] || { echo "JENKINS_RELEASE not set" >&2; exit 1; }
32 $(RM) -r $(DESTDIR)/usr
33 mkdir -p $(DESTDIR)/usr/share/jenkins/war
34 mkdir -p $(DESTDIR)/usr/share/jenkins/war/$(JENKINS_RELEASE)
35 cp -f jenkins-$(JENKINS_RELEASE)-$(JENKINS_VERSION).war $(DESTDIR)/usr/share/jenkins/war/$(JENKINS_RELEASE)/jenkins-$(JENKINS_VERSION).war
36 ln -rfs $(DESTDIR)/usr/share/jenkins/war/$(JENKINS_RELEASE)/jenkins-$(JENKINS_VERSION).war $(DESTDIR)/usr/share/jenkins/war/$(JENKINS_RELEASE)/jenkins.war
37 ln -rfs $(DESTDIR)/usr/share/jenkins/war/$(JENKINS_RELEASE)/jenkins.war $(DESTDIR)/usr/share/jenkins/war/jenkins.war