Makefile.am 895 Bytes
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
1
# Main Makefile for SExtractor
2
# Copyright (C) 2002-2009 Emmanuel Bertin.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3
AUTOMAKE_OPTIONS	= foreign no-dependencies
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4
5
SUBDIRS			= man src tests
dist_pkgdata_DATA	= xsl/sextractor.xsl
6
EXTRA_DIST		= config doc AUTHORS BUGS ChangeLog COPYRIGHT HISTORY \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
7
			  INSTALL README THANKS \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
8
9
10
			  acx_atlas.m4 acx_prog_cc_optim.m4 \
			  acx_urbi_resolve_dir.m4
RPM_ROOTDIR		= `rpmbuild --nobuild -E %_topdir`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
11
RPM_SRCDIR		= $(RPM_ROOTDIR)/SOURCES
Emmanuel Bertin's avatar
Emmanuel Bertin committed
12
13
14
dist-hook:
	rm -rf `find $(distdir) -name .svn`

Emmanuel Bertin's avatar
Emmanuel Bertin committed
15
16
rpm:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17
18
19
20
21
	rpmbuild -ba --clean --nodeps $(PACKAGE_NAME).spec

rpm-icc:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
	USE_ICC="1" rpmbuild -ba --clean --nodeps $(PACKAGE_NAME).spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22

23
24
25
26
rpm-best:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
	USE_BEST="1" rpmbuild -ba --clean --nodeps $(PACKAGE_NAME).spec