1
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
3
# This file is free software; as a special exception the author gives
4
# unlimited permission to copy and/or distribute it, with or without
5
# modifications, as long as this notice is preserved.
7
# This program is distributed in the hope that it will be useful, but
8
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29
docdatadir = $(datadir)/$(PACKAGE)/doc
31
docdata_DATA = AUTHORS SPONSORS
39
SUBDIRS = src doc tools i18n resources images $(TESTS)
42
pkginclude_HEADERS = qgsconfig.h
45
@UIS=`find . -name *.ui` && \
46
if [ `grep "UI version" $$UIS | sed -e '/3.1/d' -e '/3.3/d' | wc -l` -ne 0 ]; then \
47
echo -e "\nWrong UI version:"; \
48
grep "UI version" $$UIS | sed -e '/3.1/d' -e '/3.3/d' -e 's/:.*version="\([0-9\.]*\)".*/ is version \1/g'; \
53
release: UIcheck distdir
54
-chmod -R a+r $(distdir)
55
GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
56
rm -f $(distdir)/qgis.spec
57
sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' qgis.spec \
58
> $(distdir)/qgis.spec
59
BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
62
BUILT_SOURCES = qgssvnversion.h
64
.PHONY : qgssvnversion.h
66
@if [ "$(HAVE_SVNVERSION)" == "yes" ]; then \
67
QGSSVNDEF="#define QGSSVNVERSION \"`svnversion .`\""; \
69
QGSSVNDEF="#define QGSSVNVERSION \"unknown\""; \
71
if [ "`grep QGSSVNVERSION qgssvnversion.h 2>/dev/null`" != "$$QGSSVNDEF" ]; then \
72
echo $$QGSSVNDEF > qgssvnversion.h; \