-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (34 loc) · 1.03 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
#
# Makefile for stackato-uaa-ng
#
# Used solely by packaging systems.
# Must support targets "all", "install", "uninstall".
#
# During the packaging install phase, the native packager will
# set either DESTDIR or prefix to the directory which serves as
# a root for collecting the package files.
#
# The resulting package installs in /home/stackato/stackato/code,
# is not intended to be relocatable.
#
NAME=stackato-uaa-ng
INSTALLHOME=/home/stackato
INSTALLBASE=$(INSTALLHOME)/stackato
INSTALLROOT=$(INSTALLBASE)/code
DIRNAME=$(INSTALLROOT)/uaa
HOMEDIR=$(DESTDIR)$(prefix)$(INSTALLHOME)
BASEDIR=$(DESTDIR)$(prefix)$(INSTALLBASE)
INSTDIR=$(DESTDIR)$(prefix)$(DIRNAME)
# Don't exclude .git because maven build for uaa needs it.
RSYNC_EXCLUDE=--exclude=/Makefile --exclude=/.stackato-pkg --exclude=/debian --exclude=/etc
all:
@ true
install:
mkdir -p $(INSTDIR)
rsync -ap . $(INSTDIR) $(RSYNC_EXCLUDE)
if [ -d etc ] ; then rsync -ap etc $(BASEDIR) ; fi
chown -R stackato.stackato $(HOMEDIR)
uninstall:
rm -rf $(INSTDIR)
clean:
@ true