summaryrefslogtreecommitdiff
path: root/src/themes/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/Makefile.am')
-rw-r--r--src/themes/Makefile.am29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/themes/Makefile.am b/src/themes/Makefile.am
new file mode 100644
index 0000000..9edfd4b
--- /dev/null
+++ b/src/themes/Makefile.am
@@ -0,0 +1,29 @@
+THEMES= \
+ Atlanta \
+ Crux
+
+THEME_DIR=$(pkgdatadir)/themes
+
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(THEME_DIR); \
+ for THEME in $(THEMES); do \
+ echo '-- Installing theme '$$THEME; \
+ $(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME; \
+ (installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
+ for i in $$installfiles; do \
+ echo '-- Installing '$$i ; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(THEME_DIR)/$$THEME; \
+ done) \
+ done
+
+dist-hook:
+ mkdir $(distdir)/themes; \
+ for THEME in $(THEMES); do \
+ echo '-- Disting theme '$$THEME; \
+ mkdir $(distdir)/$$THEME; \
+ (installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
+ for i in $$installfiles; do \
+ echo '-- Disting '$$i ; \
+ cp $$i $(distdir)/$$THEME; \
+ done) \
+ done