project: Remove autotools
https://bugzilla.gnome.org/show_bug.cgi?id=782843
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
4c115249a7
commit
a1d25d2d7e
@@ -1,73 +0,0 @@
|
||||
NULL =
|
||||
|
||||
public_icons_themes = \
|
||||
hicolor \
|
||||
$(NULL)
|
||||
|
||||
public_icons = \
|
||||
hicolor_apps_16x16_org.gnome.Calendar.png \
|
||||
hicolor_apps_22x22_org.gnome.Calendar.png \
|
||||
hicolor_apps_24x24_org.gnome.Calendar.png \
|
||||
hicolor_apps_32x32_org.gnome.Calendar.png \
|
||||
hicolor_apps_48x48_org.gnome.Calendar.png \
|
||||
hicolor_apps_256x256_org.gnome.Calendar.png \
|
||||
hicolor_apps_512x512_org.gnome.Calendar.png \
|
||||
hicolor_apps_symbolic_org.gnome.Calendar-symbolic.svg \
|
||||
$(NULL)
|
||||
|
||||
noinst_DATA = \
|
||||
org.gnome.Calendar.svg \
|
||||
org.gnome.Calendar.blend \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(public_icons) \
|
||||
$(noinst_DATA) \
|
||||
$(NULL)
|
||||
|
||||
###############################################################################
|
||||
|
||||
gtk_update_icon_cache = gtk-update-icon-cache -f -t
|
||||
|
||||
update-icon-cache:
|
||||
@-if test -z "$(DESTDIR)"; then \
|
||||
echo "Updating Gtk icon cache."; \
|
||||
for theme in $(public_icons_themes); do \
|
||||
$(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
|
||||
done; \
|
||||
else \
|
||||
echo "*** Icon cache not updated. After (un)install, run this:"; \
|
||||
for theme in $(public_icons_themes); do \
|
||||
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
install-icons:
|
||||
for icon in $(public_icons); do \
|
||||
THEME=`echo $$icon | cut -d_ -f1`; \
|
||||
CONTEXT=`echo $$icon | cut -d_ -f2`; \
|
||||
SIZE=`echo $$icon | cut -d_ -f3`; \
|
||||
ICONFILE=`echo $$icon | cut -d_ -f4`; \
|
||||
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
|
||||
done
|
||||
|
||||
uninstall-icons:
|
||||
-for icon in $(public_icons); do \
|
||||
THEME=`echo $$icon | cut -d_ -f1`; \
|
||||
CONTEXT=`echo $$icon | cut -d_ -f2`; \
|
||||
SIZE=`echo $$icon | cut -d_ -f3`; \
|
||||
ICONFILE=`echo $$icon | cut -d_ -f4`; \
|
||||
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
|
||||
done
|
||||
|
||||
install-data-local: install-icons update-icon-cache
|
||||
uninstall-local: uninstall-icons update-icon-cache
|
||||
|
||||
install-data-hook: update-icon-cache
|
||||
uninstall-hook: update-icon-cache
|
||||
|
||||
clean-local :
|
||||
rm -f *~
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
Reference in New Issue
Block a user