forked from CristianHenzel/ClipIt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
50 lines (41 loc) · 1.38 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
AUTOMAKE_OPTIONS = foreign
SUBDIRS = data doc src po
DISTCLEANFILES = *.bak *.log *~
EXTRA_DIST = \
m4 \
autogen.sh \
config.rpath \
m4/ChangeLog \
$(desktop_DATA) \
$(autostart_DATA) \
$(pixmaps_DATA) \
intltool-merge.in \
intltool-update.in \
intltool-extract.in
dist-hook:
update-po
rm -rf $(distdir)/m4/Makefile
ACLOCAL_AMFLAGS = -I m4
gtk_update_icon_cache = gtk-update-icon-cache -f -t
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
check-gettext:
@if test x$(USE_NLS) != "xyes" ; then echo "Missing gettext. Rerun configure and check for" \
"'checking whether to use NLS... yes'!" ; exit 1 ; fi
update-po: check-gettext
@find $(srcdir)/ -name '*.c' -o -name '*.desktop.in' | sed "s/^.\///" | grep -v "eggaccelerators" | grep -v "^clipit-" | sort > $(srcdir)/po/POTFILES.in.2 ; \
cat $(srcdir)/po/POTFILES.in.2 ; \
if diff $(srcdir)/po/POTFILES.in $(srcdir)/po/POTFILES.in.2 >/dev/null 2>&1 ; then \
rm -f $(srcdir)/po/POTFILES.in.2 ; \
else \
mv $(srcdir)/po/POTFILES.in.2 $(srcdir)/po/POTFILES.in ; \
fi
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache) $(datadir)/icons/hicolor; \
else \
echo "*** Icon cache not updated. After (un)install, run these:"; \
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/hicolor"; \
fi