forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
73 lines (61 loc) · 1.88 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
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
EXTRA_DIST = \
AUTHORS \
SPONSORS \
BUGS \
ChangeLog \
COPYING \
create_qm_files.sh \
INSTALL \
$(man1_MANS) \
NEWS \
qgis.spec \
qgsconfig.h.in \
README \
TODO \
update_ts_files.sh
man1_MANS = qgis.man
docdatadir = $(datadir)/$(PACKAGE)/doc
docdata_DATA = AUTHORS SPONSORS
if WITH_UNITTESTS
TESTS = tests
endif
if HAVE_QT4
SUBDIRS = src doc tools i18n resources images $(TESTS)
endif
pkginclude_HEADERS = qgsconfig.h
UIcheck:
@UIS=`find . -name *.ui` && \
if [ `grep "UI version" $$UIS | sed -e '/3.1/d' -e '/3.3/d' | wc -l` -ne 0 ]; then \
echo -e "\nWrong UI version:"; \
grep "UI version" $$UIS | sed -e '/3.1/d' -e '/3.3/d' -e 's/:.*version="\([0-9\.]*\)".*/ is version \1/g'; \
echo; \
exit 1; \
fi
release: UIcheck distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
rm -f $(distdir)/qgis.spec
sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' qgis.spec \
> $(distdir)/qgis.spec
BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
-rm -rf $(distdir)
BUILT_SOURCES = qgssvnversion.h
.PHONY : qgssvnversion.h
qgssvnversion.h:
@if [ "$(HAVE_SVNVERSION)" == "yes" ]; then \
QGSSVNDEF="#define QGSSVNVERSION \"`svnversion .`\""; \
else \
QGSSVNDEF="#define QGSSVNVERSION \"unknown\""; \
fi; \
if [ "`grep QGSSVNVERSION qgssvnversion.h 2>/dev/null`" != "$$QGSSVNDEF" ]; then \
echo $$QGSSVNDEF > qgssvnversion.h; \
fi