~drizzle-trunk/drizzle/development

1286.1.2 by Brian Aker
Added very basic RPM support.
1
# vim:ft=automake
2
1 by brian
clean slate
3
# Copyright (C) 2000-2001, 2003-2006 MySQL AB
1286.1.2 by Brian Aker
Added very basic RPM support.
4
# Copyright (C) Brian Aker
1 by brian
clean slate
5
#
6
# This library is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU Library General Public
8
# License as published by the Free Software Foundation; version 2
9
# of the License.
10
#
11
# This library is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
# Library General Public License for more details.
15
#
16
# You should have received a copy of the GNU Library General Public
17
# License along with this library; if not, write to the Free
18
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19
# MA 02111-1307, USA
20
77.1.28 by Monty Taylor
Removed a crapload of files I hate.
21
pkgconfigdir = $(libdir)/pkgconfig
1 by brian
clean slate
22
23
# Default same as 'pkgdatadir', but we can override it
24
pkgsuppdir =		$(datadir)/@PACKAGE@
25
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
26
pkgsupp_DATA =		support-files/drizzle-log-rotate
1 by brian
clean slate
27
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
28
pkgsupp_SCRIPTS =	support-files/drizzle.server 
1 by brian
clean slate
29
30
1286.1.2 by Brian Aker
Added very basic RPM support.
31
EXTRA_DIST+= \
32
	     support-files/smf/drizzle \
33
	     support-files/smf/drizzle.xml \
34
	     support-files/smf/install.sh \
35
	     support-files/drizzle.spec
36
generic_rpm:
37
	rm -f ~/rpmbuild/RPMS/x86_64/drizzle-$(VERSION)*.rpm
38
	rm -f ~/rpmbuild/SRPMS/drizzle-$(VERSION)*.rpm
39
	cp drizzle-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
40
	rpmbuild -ba support-files/drizzle.spec
41
	cp ~/rpmbuild/RPMS/x86_64/drizzle-$(VERSION)*.rpm .
42
	cp ~/rpmbuild/SRPMS/drizzle-$(VERSION)*.rpm .
43
44
rpm: dist generic_rpm
312.1.14 by Monty Taylor
Fixed bug#257694 - added various files to EXTRA_DIST and noinst_HEADERS to make make distcheck (and with-it out-of-tree builds) work.
45