-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
103 lines (85 loc) · 3.58 KB
/
Makefile.am
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# linux-ha: Linux-HA code
#
# Copyright (C) 2002 Alan Robertson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
EXTRA_DIST = bootstrap ConfigureMe README.in libltdl.tar
AUTOMAKE_OPTIONS = foreign
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure DRF/config-h.in \
DRF/stamp-h.in libtool.m4 ltdl.m4 libltdl.tar
coredir = @HA_COREDIR@
hauser = @HA_CCMUSER@
TARFILE = pacemaker-mgmt.tar.gz
LAST_RELEASE = pacemaker-mgmt-1.99.2
if CIM_PROVIDER_BUILD
CIM_PROVIDER_DIR = cim
endif
if TSA_PLUGIN_BUILD
TSA_PLUGIN_DIR = tsa_plugin
endif
if SNMP_SUBAGENT_BUILD
SNMP_SUBAGENT_DIR = snmp_subagent
endif
SUBDIRS = $(LIBLTDL_DIR) replace include lib mgmt $(CIM_PROVIDER_DIR) $(TSA_PLUGIN_DIR) $(SNMP_SUBAGENT_DIR) doc
if MGMT_CLIENT_BUILD
SUBDIRS += po
endif
tgz:
rm -f $(TARFILE)
hg archive -t tgz $(TARFILE)
echo Rebuilt $(TARFILE) on `date`
changes:
printf "$(PACKAGE) ($(VERSION)-1) stable; urgency=medium\n"
printf " * Update source tarball to revision: `hg id`\n"
printf " * Statistics:\n"
printf " Changesets: `hg log -M --template "{desc|firstline|strip}\n" -r $(LAST_RELEASE):tip | wc -l`\n"
printf " Diff: "
hg diff -r $(LAST_RELEASE):tip | diffstat | tail -n 1
# printf "\n * Testing Notes:\n"
# printf "\n + Test hardware:\n"
# printf "\n + All testing was performed with STONITH enabled\n"
# printf "\n + Pending bugs encountered during testing:\n"
printf "\n * Changes since $(LAST_RELEASE)\n"
# hg log -M --template " + {desc|firstline|strip}\n" -r $(LAST_RELEASE):tip | grep -v Low: | sort -uf
hg log -M --template " + {desc|firstline|strip}\n" -r $(LAST_RELEASE):tip | sort -uf
printf "\n -- Gao,Yan <[email protected]> `date +"%a, %d %b %Y %T %z"`\n"
OBS_PROJECT = pacemaker-mgmt
OBS_SERVER = c001n16.suse.de
OBS_PREFIX = Development/obs
OBS_FILES = .changes $(TARFILE)
stable: tgz
make changes > .changes
scp $(OBS_FILES) $(OBS_SERVER):$(OBS_PREFIX)/server:ha-clustering/$(OBS_PROJECT)/
unstable: tgz
make changes > .changes
scp $(OBS_FILES) $(OBS_SERVER):$(OBS_PREFIX)/server:ha-clustering:UNSTABLE/$(OBS_PROJECT)/
factory: tgz
make changes > .changes
ssh $(OBS_SERVER) -- 'cd $(OBS_PREFIX)/server:ha-clustering:Factory/$(OBS_PROJECT) ; /usr/bin/osc up'
scp $(OBS_FILES) $(OBS_SERVER):$(OBS_PREFIX)/server:ha-clustering:Factory/$(OBS_PROJECT)/
ssh $(OBS_SERVER) -- "cd $(OBS_PREFIX)/server:ha-clustering:Factory/$(OBS_PROJECT); /usr/bin/osc commit -m \"New $(OBS_PROJECT) snapshot - $(shell $(HG) id)\""
install-exec-local:
if MGMT_CLIENT_BUILD
-mkdir -p $(DESTDIR)$(bindir)
-cd $(DESTDIR)$(libdir)/heartbeat-gui && rm -f haclient.py && ln -s $(datadir)/heartbeat-gui/haclient.py .
-cd $(DESTDIR)$(bindir) && rm -f crm_gui && ln -s $(datadir)/heartbeat-gui/haclient.py crm_gui
-cd $(DESTDIR)$(bindir) && rm -f hb_gui && ln -s $(datadir)/heartbeat-gui/haclient.py hb_gui
endif
dist-clean-local:
rm -f autoconf automake autoheader
maintainer-clean-local:
rm -f libltdl.tar