summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-15 14:20:13 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-28 21:42:01 +0100
commitfe6a3611ec1d7f04500270aa01edd143a2807328 (patch)
treec1d8165502f5ee6f4fc486748e2f0a12746dd135
parentc401a23cf64393dc18506edd69822fbd9ef62a10 (diff)
downloadknights-fe6a3611ec1d7f04500270aa01edd143a2807328.tar.gz
knights-fe6a3611ec1d7f04500270aa01edd143a2807328.zip
Change Automake rules to make tarballs for themes created during building.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1dc9140116a24170d1ec7a48fc866a2fe50b2d59)
-rw-r--r--media/Makefile.am17
1 files changed, 13 insertions, 4 deletions
diff --git a/media/Makefile.am b/media/Makefile.am
index daa0fce..e50d528 100644
--- a/media/Makefile.am
+++ b/media/Makefile.am
@@ -3,13 +3,22 @@
EXTRA_DIST = hi48-mime-pgn.png hi16-mime-pgn.png KSDefault.tar.gz default-portrait.jpg hi64-app-knights.png pgn_template.kml hi64-mime-pgn.png hi32-mime-pgn.png icon-general.png hi32-app-knights.png default-engine-portrait.jpg KBDefault.tar.gz wizard.png hi48-app-knights.png KCDefault.tar.gz hi16-app-knights.png icon-display.png Makefile.am
-install-data-local:
+KBDefault.tar.gz: KBDefault
+ ls $(<D)/$(^F) | xargs -r tar cfz $@ -C $(<D)/$(^F)
+
+KCDefault.tar.gz: KCDefault
+ ls $(<D)/$(^F) | xargs -r tar cfz $@ -C $(<D)/$(^F)
+
+KSDefault.tar.gz: KSDefault
+ ls $(<D)/$(^F) | xargs -r tar cfz $@ -C $(<D)/$(^F)
+
+install-data-local: KBDefault.tar.gz KCDefault.tar.gz KSDefault.tar.gz
$(mkinstalldirs) $(kde_icondir)/hicolor/48x48/mimetypes/
$(INSTALL_DATA) $(srcdir)/hi48-mime-pgn.png $(kde_icondir)/hicolor/48x48/mimetypes/pgn.png
$(mkinstalldirs) $(kde_icondir)/hicolor/16x16/mimetypes/
$(INSTALL_DATA) $(srcdir)/hi16-mime-pgn.png $(kde_icondir)/hicolor/16x16/mimetypes/pgn.png
$(mkinstalldirs) $(kde_datadir)/knights/themes/
- $(INSTALL_DATA) $(srcdir)/KSDefault.tar.gz $(kde_datadir)/knights/themes/KSDefault.tar.gz
+ $(INSTALL_DATA) $(builddir)/KSDefault.tar.gz $(kde_datadir)/knights/themes/KSDefault.tar.gz
$(mkinstalldirs) $(kde_datadir)/knights/
$(INSTALL_DATA) $(srcdir)/default-portrait.jpg $(kde_datadir)/knights/default-portrait.jpg
$(mkinstalldirs) $(kde_icondir)/hicolor/64x64/apps/
@@ -29,13 +38,13 @@ install-data-local:
$(mkinstalldirs) $(kde_datadir)/knights/
$(INSTALL_DATA) $(srcdir)/default-engine-portrait.jpg $(kde_datadir)/knights/default-engine-portrait.jpg
$(mkinstalldirs) $(kde_datadir)/knights/themes/
- $(INSTALL_DATA) $(srcdir)/KBDefault.tar.gz $(kde_datadir)/knights/themes/KBDefault.tar.gz
+ $(INSTALL_DATA) $(builddir)/KBDefault.tar.gz $(kde_datadir)/knights/themes/KBDefault.tar.gz
$(mkinstalldirs) $(kde_datadir)/knights/
$(INSTALL_DATA) $(srcdir)/wizard.png $(kde_datadir)/knights/wizard.png
$(mkinstalldirs) $(kde_icondir)/hicolor/48x48/apps/
$(INSTALL_DATA) $(srcdir)/hi48-app-knights.png $(kde_icondir)/hicolor/48x48/apps/knights.png
$(mkinstalldirs) $(kde_datadir)/knights/themes/
- $(INSTALL_DATA) $(srcdir)/KCDefault.tar.gz $(kde_datadir)/knights/themes/KCDefault.tar.gz
+ $(INSTALL_DATA) $(builddir)/KCDefault.tar.gz $(kde_datadir)/knights/themes/KCDefault.tar.gz
$(mkinstalldirs) $(kde_icondir)/hicolor/16x16/apps/
$(INSTALL_DATA) $(srcdir)/hi16-app-knights.png $(kde_icondir)/hicolor/16x16/apps/knights.png
$(mkinstalldirs) $(kde_datadir)/knights/