Oreon-Lime-R2/anaconda/anaconda-34.25.5.0/data/liveinst/gnome/Makefile.am

39 lines
1.6 KiB
Makefile

# liveinst/gnome/Makefile.am for anaconda
#
# Copyright (C) 2012 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
welcomedir = $(datadir)/$(PACKAGE_NAME)/gnome
dist_welcome_DATA = fedora-welcome.desktop
dist_welcome_SCRIPTS = fedora-welcome.js
MAINTAINERCLEANFILES = Makefile.in
# Merge the translations into the desktop file
# Use the merged translations in $(builddir). If no merged translations exist,
# just exit.
# Rename fedora-welcome.js to just fedora-welcome
install-data-hook:
for p in $(top_builddir)/po/*.mpo ; do \
[ -e $$p ] || exit 0 ; \
$(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/fedora-welcome.desktop \
--locale=$$(basename $$p .mpo) \
-o $(DESTDIR)$(welcomedir)/fedora-welcome.desktop.new $$p || exit 1 ; \
mv $(DESTDIR)$(welcomedir)/fedora-welcome.desktop.new $(DESTDIR)$(welcomedir)/fedora-welcome.desktop || exit 1 ; \
done
cd $(DESTDIR)$(welcomedir) && mv fedora-welcome.js fedora-welcome
uninstall-hook:
-cd $(DESTDIR)$(welcomedir) && rm -f fedora-welcome