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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
@INTLTOOL_XML_RULE@
appdatadir = $(datarootdir)/appdata
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = denemo.appdata.xml.in
SUBDIRS = \
tools \
libs/libsffile \
libs/libsmf \
build \
docs \
pixmaps \
po \
src \
fonts \
soundfonts \
ui \
tests
EXTRA_DIST = \
include \
actions \
templates \
examples \
@PACKAGE@.spec.in \
@PACKAGE@.spec \
$(INTLTOOL_FILES) \
docs/DESIGN \
docs/GOALS \
docs/DESIGN.lilypond \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
po/$(GETTEXT_PACKAGE).pot \
denemo.appdata.xml.in
MAINTAINERCLEANFILES = \
Makefile.in \
aclocal.m4 \
configure \
config.h.in \
stamp-h.in \
config.guess \
mkinstalldirs \
missing \
install-sh \
config.sub \
acinclude.m4 \
config.log \
depcomp \
intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache \
$(GETTEXT_PACKAGE)-$(VERSION).pot
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache \
po/denemo.pot
CLEANFILES = \
$(appdata_DATA)
ACLOCAL_AMFLAGS = -I build
install-data-hook:
cp -r $(srcdir)/actions ${DESTDIR}/$(datadir)/${PACKAGE}/
find $(DESTDIR)$(datadir)/${PACKAGE}/actions -type d -exec chmod 755 '{}' \;
find $(DESTDIR)$(datadir)/${PACKAGE}/examples -type f \( -name Makefile -o -name Makefile.in \
-o -name Makefile.am \) -print0 | xargs -0 rm -rf \;
cp -r $(srcdir)/examples ${DESTDIR}/$(datadir)/${PACKAGE}/
find $(DESTDIR)$(datadir)/${PACKAGE}/examples -type d -exec chmod 755 '{}' \;
find $(DESTDIR)$(datadir)/${PACKAGE}/examples -type f \( -name Makefile -o -name Makefile.in \
-o -name Makefile.am \) -print0 | xargs -0 rm -rf \;
cp -r $(srcdir)/templates ${DESTDIR}/$(datadir)/${PACKAGE}/
find $(DESTDIR)$(datadir)/${PACKAGE}/templates -type d -exec chmod 755 '{}' \;
find $(DESTDIR)$(datadir)/${PACKAGE}/templates -type f \( -name Makefile -o -name Makefile.in \
-o -name Makefile.am \) -print0 | xargs -0 rm -rf \;
uninstall-hook:
rm -rf ${DESTDIR}/$(datadir)/${PACKAGE}/actions
rm -rf ${DESTDIR}/$(datadir)/${PACKAGE}/examples
rm -rf ${DESTDIR}/$(datadir)/${PACKAGE}/templates
potfile:
@echo Generating POTFILES...
@rm -f $(srcdir)/po/POTFILES.in
@rm -f $(srcdir)/po/POTFILES.skip
@cd $(srcdir) && find src -name '*.c' -o -name '*.h' ! -name 'pathconfig.h' | sort >> po/POTFILES.in
@cd $(srcdir) && find actions -name '*.xml' -o -name '*.scm' | sort >> po/POTFILES.in
@cd $(srcdir) && echo denemo.appdata.xml.in >> po/POTFILES.in
@cd $(srcdir) && find tools -name '*.c' -o -name '*.h' | sort >> po/POTFILES.skip
@cd $(srcdir) && find src -name 'pathconfig.h' | sort >> po/POTFILES.skip
@cp $(srcdir)/po/POTFILES.in $(builddir)/po/POTFILES.in.bak
@cp $(srcdir)/po/POTFILES.skip $(builddir)/po/POTFILES.skip.bak
@mv $(builddir)/po/POTFILES.in.bak $(builddir)/po/POTFILES.in
@mv $(builddir)/po/POTFILES.skip.bak $(builddir)/po/POTFILES.skip
pot:
@echo Generating POT...
$(MAKE) -C "$(builddir)/po" "$(GETTEXT_PACKAGE).pot"
# cp "$(builddir)/po/$(GETTEXT_PACKAGE).pot" "$(builddir)/po/$(GETTEXT_PACKAGE)-$(VERSION).pot"
po/$(GETTEXT_PACKAGE).pot:pot
update-po:
@echo Get po files from translationproject.org
rsync -Lrtvz translationproject.org::tp/latest/denemo/ po
send-pot:dist
echo "You can find in attachment the latest version of denemo.pot. This is an automatic message, but someone should answer you if you reply." | mailx -v -S from=denemo-devel@gnu.org -s "$(GETTEXT_PACKAGE)-$(VERSION).pot" -a $(GETTEXT_PACKAGE)-$(VERSION).tar.gz -a po/$(GETTEXT_PACKAGE)-$(VERSION).pot coordinator@translationproject.org
update-samples:
find . -name '*.denemo' -exec src/denemo -n -a "(d-Save \"{}\")(d-Quit)" '{}' \;
|