summaryrefslogtreecommitdiff
path: root/marco-themes/Makefile.am
blob: 3dcf94a5ec159defc2ace4624a7a898b3eb3ead3 (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
31
32
33
34
35
36
37
38
39
40
THEMES= \
	Clearlooks \
	ClearlooksClassic \
	Glider \
	Glossy \
	Inverted \
	Mist

THEME_DIR=$(datadir)/themes
THEME_SUBDIR=marco-1

uninstall: uninstall-am
	for THEME in $(THEMES) ; do \
		rm -rf $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR); \
	done

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(THEME_DIR);					     \
	for THEME in $(THEMES); do							     \
		echo '-- Installing theme '$$THEME;					     \
		$(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME;			     \
		$(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR);	     \
		(installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`;	     \
		 for i in $$installfiles; do						     \
			echo '-- Installing '$$i ;					     \
		    	$(INSTALL_DATA) $$i $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) ; \
	  	 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