summaryrefslogtreecommitdiffstats
path: root/media
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:34:34 +0100
commit1dc9140116a24170d1ec7a48fc866a2fe50b2d59 (patch)
tree8ccf41e11441eb43ba747e490957760b5301086e /media
parent50fd6b574d55bc5c06ab0ff2a76da11c5722f462 (diff)
downloadknights-1dc9140116a24170d1ec7a48fc866a2fe50b2d59.tar.gz
knights-1dc9140116a24170d1ec7a48fc866a2fe50b2d59.zip
Change Automake rules to make tarballs for themes created during building.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'media')
-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/