summaryrefslogtreecommitdiff
path: root/src/themes/Makefile.am
blob: 099bbca24548b2dccde64d3788b23b1be9c19319 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
THEMES= \
	Atlanta \
	ClearlooksRe \
	Dopple \
	Dopple-Left \
	DustBlue \
	Esco \
	eOS \
	Gorilla \
	Motif \
	Raleigh \
	Spidey \
	Spidey-Left \
	Splint \
	Splint-Left \
	WinMe

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

EXTRA_DIST= \
	meson.build \
	Atlanta/meson.build \
	ClearlooksRe/meson.build \
	Dopple/meson.build \
	Dopple-Left/meson.build \
	DustBlue/meson.build \
	eOS/meson.build \
	Esco/meson.build \
	Gorilla/meson.build \
	Motif/meson.build \
	Raleigh/meson.build \
	Spidey/meson.build \
	Spidey-Left/meson.build \
	Splint/meson.build \
	Splint-Left/meson.build \
	WinMe/meson.build

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

uninstall-local:
	for THEME in $(THEMES); do \
		echo '-- Uninstalling theme '$$THEME; \
		(uninstallfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
		 for i in $$uninstallfiles; do \
					i=`basename $$i`; \
			echo '-- Removing '$$i ; \
				rm -f $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR)/$$i ; \
		done); \
		rmdir $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) || :; \
		rmdir $(DESTDIR)$(THEME_DIR)/$$THEME || :; \
	done
	-rmdir $(DESTDIR)$(THEME_DIR)

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

-include $(top_srcdir)/git.mk