summaryrefslogtreecommitdiff
path: root/src/themes/Makefile.am
blob: 302b3f39cfc2cf1b92c1f5b91e93acbbc0397fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
THEMES=			\
	Atlanta		\
	Crux		\
	Gorilla

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