summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-06-25 18:44:53 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-08-17 17:05:41 +0200
commitbd13c2143730a2dd3daa5e85038991b24af189c1 (patch)
tree7341f29901335bf3b8bd76dc6eb8b22808342d24
parentea8130792270f8c747c8b765f9009eeb6db2e8ca (diff)
downloadgnome-themes-standard-bd13c2143730a2dd3daa5e85038991b24af189c1.tar.gz
build: fix make install
Add snippets to install/uninstall assets
-rw-r--r--themes/Adwaita/gtk-2.0/Makefile.am25
1 files changed, 23 insertions, 2 deletions
diff --git a/themes/Adwaita/gtk-2.0/Makefile.am b/themes/Adwaita/gtk-2.0/Makefile.am
index a863ecf5..27d6f631 100644
--- a/themes/Adwaita/gtk-2.0/Makefile.am
+++ b/themes/Adwaita/gtk-2.0/Makefile.am
@@ -1,5 +1,12 @@
+
+
themedir = $(datadir)/themes/Adwaita/gtk-2.0
-theme_DATA = gtkrc \
+theme_DATA = gtkrc
+
+asset_dirs = "Arrows" "Buttons" "Check-Radio" "Entry" "Expanders" \
+ "Handles" "Lines" "Menu-Menubar" "Others" "ProgressBar" \
+ "Range" "Scrollbars" "Shadows" "Spin" "Tabs" "Toolbar"
+asset_data =
Arrows/arrow-down-insens.png \
Arrows/arrow-down.png \
Arrows/arrow-down-prelight.png \
@@ -86,7 +93,21 @@ theme_DATA = gtkrc \
Toolbar/toolbutton-pressed.png \
Toolbar/toolbutton-toggled.png
-EXTRA_DIST = $(theme_DATA)
+install-data-local:
+ for dir in $(asset_dirs); do \
+ for file in `cd $(srcdir)/$$dir && find . -maxdepth 1 \( -name "*.png" \)`; do \
+ $(mkdir_p) $(DESTDIR)$(datadir)/themes/Adwaita/gtk-2.0/$$dir; \
+ $(install_sh_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(themedir)/$$dir/$$file; \
+ done; \
+ done
+
+uninstall-local:
+ for dir in $(asset_dirs); do \
+ for file in `cd $(srcdir)/$$dir && find . -maxdepth 1 \( -name "*.png" \)`; do \
+ rm -f $(DESTDIR)$(datadir)/themes/Adwaita/gtk-2.0/$$dir; \
+ done; \
+ done
+EXTRA_DIST = $(theme_DATA) $(asset_data)
-include $(top_srcdir)/git.mk