PageRenderTime 30ms CodeModel.GetById 22ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/Makefile.am

http://scim-python.googlecode.com/
Makefile | 75 lines | 42 code | 9 blank | 24 comment | 5 complexity | 6d1ee6bb88f247a95bae4275ce77e747 MD5 | raw file
 1# vim:set noet ts=4:
 2#
 3# scim-python
 4#
 5# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
 6#
 7#
 8# This library is free software; you can redistribute it and/or
 9# modify it under the terms of the GNU Lesser General Public
10# License as published by the Free Software Foundation; either
11# version 2 of the License, or (at your option) any later version.
12#
13# This library is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16# GNU Lesser General Public License for more details.
17#
18# You should have received a copy of the GNU Lesser General Public
19# License along with this program; if not, write to the
20# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21# Boston, MA  02111-1307  USA
22#
23# $Id: $
24#
25SUBDIRS = src python data po m4
26
27ACLOCAL_AMFLAGS = -I m4
28
29EXTRA_DIST = 			\
30	autogen.sh			\
31	config.rpath		\
32	python-config.py	\
33	LICENSE.Python		\
34	$(NULL)
35
36noinst_DIST =           \
37	scim-python.sepc.in \
38	$(NULL)
39
40
41DISTCLEANFILES =		\
42	po/stamp-it
43
44rpm: dist scim-python.spec
45	rpmbuild -bb						\
46			--define "_sourcedir `pwd`" \
47			--define "_builddir `pwd`" 	\
48			--define "_srcrpmdir `pwd`" \
49			--define "_rpmdir `pwd`" 	\
50			--define "_specdir `pwd`" 	\
51			scim-python.spec
52
53rpm-prep: dist scim-python.spec
54	rpmbuild -bp						\
55			--define "_sourcedir `pwd`" \
56			--define "_builddir `pwd`" 	\
57			--define "_srcrpmdir `pwd`" \
58			--define "_rpmdir `pwd`" 	\
59			--define "_specdir `pwd`" 	\
60			scim-python.spec
61
62srpm: dist scim-python.spec
63	rpmbuild -bs --define "_sourcedir `pwd`" --define "_builddir `pwd`" --define "_srcrpmdir `pwd`" --define "_rpmdir `pwd`" --define "_specdir `pwd`" scim-python.spec
64
65if ENABLE_DEBIAN_DPKG
66deb: dist
67	if test -e debian; then \
68		dch -v "@VERSION@-0" -D UNRELEASED 'Local build'; \
69		dpkg-buildpackage -us -uc; \
70	else \
71		@echo "======================== failed! ===================="; \
72		@echo "make deb is for make debian package for svn checkout."; \
73		@echo "please check out code from http://scim-python.googlecode.com/svn/trunk/";\
74	fi
75endif