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
|
SUBDIRS = @PACKAGE_LIBRARIES_SUBDIRS@ icons man mlib po src ui
ACLOCAL_AMFLAGS = -I m4
# Added by gettextize
EXTRA_DIST = build-aux/config.rpath
desktopdir = $(datadir)/applications
desktop_DATA = @PACKAGE@.desktop
# icons cache -->
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook:
@ \
if test -z "$(DESTDIR)"; \
then \
echo "Updating GTK icon cache..."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After install please run:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
# icons cache <--
# gettext -->
.PHONY: gettext
gettext:
( \
echo -e '# List of source files which contain translatable strings.\n'; \
find mlib src ui -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.hh' -o -name '*.hpp ' -o -name '*.hxx' -o -name '*.glade' \
) > po/POTFILES.in
make -C po update-po
cd po || exit 1; \
for lang in $$(cat LINGUAS | $(SED) 's/#.*$$//'); \
do \
msgmerge --force-po --no-wrap --no-fuzzy-matching --update --backup=off "$$lang.po" "@PACKAGE@" || exit 1; \
done
## gettext <--
## loop -->
.PHONY: loop
loop:
bash -c ' \
ulimit -c unlimited; \
check_files=$$(find $(srcdir)/mlib $(srcdir)/src -name "Makefile.am" -o -name "*.cpp" -o -name "*.h" -o -name "*.hh" -o -name "*.hpp" -o -name "*.hxx"); \
\
while true; \
do \
new_files=$$(ls -l --time-style="+%Y.%m.%d %H:%M:%S" $$check_files); \
\
if [ "$$files" != "$$new_files" ]; \
then \
make --no-print-directory --keep-going -j4 && echo "OK"; \
fi; \
\
files="$$new_files"; \
read -t 1 input && MALLOC_CHECK_=3 ./src/@PACKAGE@; \
done'
## loop <--
|