build the resistance/placement plugins
[dana/openbox.git] / build / Makefile.themes
1 themes_srcdir:=$(srcdir)/themes
2
3 themes_ob_dir:=$(DESTDIR)$(themesdir)/openbox
4 themes_ob_srcdir:=$(themes_srcdir)/openbox
5 themes_ob:=artwiz bbs bluebox cthulhain deep ebox fieron fieron2 flux \
6            frobozz frobust mbdtex miklos nyz nyzclone ob20 operation \
7            outcomes paper purplehaaze shade steelblue steelblue2 \
8            the_orange trisb twice warp-xp
9
10 themes_ob_fieron_buttons_dir:=$(themes_ob_dir)/fieron_buttons
11 themes_ob_fieron_buttons_srcdir:=$(themes_ob_srcdir)/fieron_buttons
12 themes_ob_fieron_buttons:=close.xbm icon.xbm max.xbm stick.xbm
13
14 themes_ob_fieron2_buttons_dir:=$(themes_ob_dir)/fieron2_buttons
15 themes_ob_fieron2_buttons_srcdir:=$(themes_ob_srcdir)/fieron2_buttons
16 themes_ob_fieron2_buttons:=close.xbm icon.xbm max.xbm stick.xbm
17
18 themes_ob_ebox_buttons_dir:=$(themes_ob_dir)/ebox_buttons
19 themes_ob_ebox_buttons_srcdir:=$(themes_ob_srcdir)/ebox_buttons
20 themes_ob_ebox_buttons:=close.xbm icon.xbm max.xbm
21
22 themes-install:
23         $(INSTALL) -d $(DESTDIR)$(themesdir)
24
25         $(INSTALL) -d $(themes_ob_dir)
26         for i in $(addprefix $(themes_ob_srcdir)/,$(themes_ob)); do \
27                 $(INSTALL) $$i $(themes_ob_dir); \
28         done
29         $(INSTALL) -d $(themes_ob_fieron_buttons_dir)
30         for i in $(addprefix $(themes_ob_fieron_buttons_srcdir)/,$(themes_ob_fieron_buttons)); do \
31                 $(INSTALL) $$i $(themes_ob_fieron_buttons_dir); \
32         done
33         $(INSTALL) -d $(themes_ob_fieron2_buttons_dir)
34         for i in $(addprefix $(themes_ob_fieron2_buttons_srcdir)/,$(themes_ob_fieron2_buttons)); do \
35                 $(INSTALL) $$i $(themes_ob_fieron2_buttons_dir); \
36         done
37         $(INSTALL) -d $(themes_ob_ebox_buttons_dir)
38         for i in $(addprefix $(themes_ob_ebox_buttons_srcdir)/,$(themes_ob_ebox_buttons)); do \
39                 $(INSTALL) $$i $(themes_ob_ebox_buttons_dir); \
40         done
41
42 themes-uninstall:
43         -for i in $(themes_ob_ebox_buttons); do \
44                 $(RM) $(themes_ob_ebox_buttons_dir)/$$i; \
45         done
46         -rmdir $(themes_ob_ebox_buttons_dir)
47         -for i in $(themes_ob_fieron2_buttons); do \
48                 $(RM) $(themes_ob_fieron2_buttons_dir)/$$i; \
49         done
50         -rmdir $(themes_ob_fieron2_buttons_dir)
51         -for i in $(themes_ob_fieron_buttons); do \
52                 $(RM) $(themes_ob_fieron_buttons_dir)/$$i; \
53         done
54         -rmdir $(themes_ob_fieron_buttons_dir)
55         -for i in $(themes_ob); do \
56                 $(RM) $(themes_ob_dir)/$$i; \
57         done
58         -rmdir $(themes_ob_dir)
59
60         -rmdir $(DESTDIR)$(themesdir)