Debian Codegraph @

blue_src/nonanim/Makefile

raw
1 CURSORDIR=$(PREFIX)/crystalblue_nonanim/cursors
2 BUILDDIR=../../blue_cursors_nonanim
3
4
5 ########################################################################
6
7 #Find list of cursors
8 conffiles = $(wildcard *.conf)
9 cursorfiles:= $(foreach conffile,$(conffiles),$(BUILDDIR)/$(subst ./,,$(subst .conf,,$(conffile))))
10 cursornames:= $(foreach conffile,$(conffiles),$(subst ./,,$(subst .conf,,$(conffile))))
11
12
13
14 CURSORS = $(cursorfiles)
15 CURSORNAMES= $(cursornames)
16
17
18
19
20 .PHONY: all
21
22
23 all: $(CURSORS)
24
25 install: all
26 #Create necessary directories
27
28 if test ! -d $(PREFIX) ;then mkdir $(PREFIX); fi
29 if test ! -d $(PREFIX)/default ;then mkdir $(PREFIX)/default;fi
30 if test ! -d $(PREFIX)/crystalblue_nonanim ;then mkdir $(PREFIX)/crystalblue_nonanim; fi
31 if test ! -d $(PREFIX)/crystalblue_nonanim/cursors ;then mkdir $(PREFIX)/crystalblue_nonanim/cursors; fi
32 #Copy the cursors
33
34 cp -Rf $(BUILDDIR)/* $(CURSORDIR)
35
36 #Copy the configuration file
37 cp -f index.theme $(PREFIX)/crystalblue_nonanim/
38
39 #Create some symlinks
40 ln -sf left_ptr_watch $(CURSORDIR)/3ecb610c1bf2410f44200f48c40d3599 # left_ptr_watch
41 ln -sf left_ptr_watch $(CURSORDIR)/08e8e1c95fe2fc01f976f1e063a24ccd #mozilla's left_ptr_watch
42
43
44 #Normal Cursors
45 define CURSOR_template
46 $(BUILDDIR)/$(1): $(1).png $(1).conf
47 xcursorgen $(1).conf $(BUILDDIR)/$(1)
48 endef
49
50 $(foreach cursor,$(CURSORNAMES),$(eval $(call CURSOR_template,$(cursor))))
51
52 left_ptr_watch.png: ../left_ptr_watch/left_ptr_watch12.png
53 ln -sf ../left_ptr_watch/left_ptr_watch12.png left_ptr_watch.png
54
55 watch.png: ../watch/watch12.png
56 ln -sf ../watch/watch12.png watch.png