-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
99 lines (75 loc) · 3.08 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
## Process this file with automake to produce Makefile.in
SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer
gnomedatadir = $(datadir)
#desktop_in_in_files = dia.desktop.in.in
#desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)
applicationsdir = $(datadir)/applications
#applications_DATA = $(desktop_files)
pkgdata_DATA =
CLEANFILES = core-translation-report dia.keys dia.desktop
#DISTCLEANFILES = $(desktop_files)
#--- Adapted from http://svn.xfce.org/svn/xfce/libexo/trunk/exo-helper/helpers/Makefile.am
desktopdir = $(datadir)/applications
desktop_in_files = dia.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
DISTCLEANFILES = \
$(desktop_DATA) $(desktop_in_files)
#---
dia.desktop.in: $(top_srcdir)/dia.desktop.in.in $(wildcard $(top_srcdir)/po/*.po)
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_srcdir)/po/.intltool-merge-cachemake
# I'd love to have automake do this substitution for me, but then it'd happen
# before intltool above, and that one doesn't understand builddir and so can't
# use the output.
dia.desktop: dia.desktop.in
sed -e 's/@VERSION/@'$(VERSION)'/;' < $< > $@
distclean-local:
rm -f dia.keys
rm -f intltool-extract
rm -f intltool-merge
rm -f intltool-update
mimedir = $(gnomedatadir)/mime-info
mime_DATA = dia.mime dia.keys
po/dia.pot:
(cd po ; $(MAKE) dia.pot)
po/Makefile: po/Makefile.in
(cd po ; make -f Makefile.in Makefile ; make) # gettext hack
core-translation-report: po/dia.pot $(srcdir)/po-checktrans.py $(srcdir)/po-checktrans
if [ ! "$(srcdir)" -ef "." ]; then \
cp $(srcdir)/po-checktrans .; \
cp $(srcdir)/po-checktrans.py .; \
fi
./po-checktrans po/dia.pot $(srcdir)/po/*.po
if [ ! "$(srcdir)" -ef "." ]; then \
rm -f ./po-checktrans ./po-checktrans.py; \
fi
all-local: core-translation-report po/Makefile
tests:
cd tests && $(MAKE) tests
# on uninstall scrollkeeper will leave behind an empty database
# See http://mail.gnome.org/archives/desktop-devel-list/2003-July/msg00144.html
# Requires automake-1.7, so 'export WANT_AUTOMAKE=1.7' before './autogen.sh'
distuninstallcheck_listfiles = find . -type f -print | grep -v '^\./var/scrollkeeper'
#distuninstallcheck:
# @:
EXTRA_DIST = dia.desktop.in.in KNOWN_BUGS $(pkgdata_DATA) \
dia.mime dia.keys.in po-checktrans.py po-checktrans \
intltool-extract.in intltool-merge.in intltool-update.in \
RELEASE-PROCESS autogen.sh makefile.msc \
config.h.win32 readme.win32 AUTHORS MAINTAINERS THANKS \
ChangeLog.pre-git
dist-hook:
@if test -d "$(srcdir)/.git"; then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log --since=2009-04-15 --date=short --pretty=format:" * %ad %an <%ae> %t%n%n%s%n%n%b" ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| (rm -f ChangeLog.tmp; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChageLog >&2; \
fi
if MAINTAINER_MODE
THANKS: all-recursive
app/run_dia.sh --credits > THANKS
endif