2000-08-23 Akira Ohashi <bg66@luck.gr.jp>
[elisp/liece.git] / etc / Makefile.am
1 ICONS = \
2         icons/back.xpm \
3         icons/ball.blank.xpm \
4         icons/ball.gray.xpm \
5         icons/ball.red.xpm \
6         icons/naruto.blank.xpm \
7         icons/naruto.gray.xpm \
8         icons/naruto.red.xpm \
9         icons/crypt.xpm \
10         icons/encrypt.xpm \
11         icons/forward.xpm \
12         icons/home.xpm \
13         icons/icons.gif \
14         icons/icons.xpm \
15         icons/liece-pointer.xbm \
16         icons/liece-pointer.xpm \
17         icons/key.xpm \
18         icons/location.xpm \
19         icons/pindown.xpm \
20         icons/print.xpm \
21         icons/reload.xpm \
22         icons/search.xpm \
23         icons/stop.xpm \
24         icons/balloon.xpm
25 CATALOGS = po/ja.po
26 STYLES = \
27         styles/bottom \
28         styles/middle \
29         styles/top
30 TARGETS = $(ICONS) $(CATALOGS) $(STYLES)
31
32 if USE_PACKAGE
33 icondir = $(packagedir)/etc/$(PACKAGE)/icons
34 catalogdir = $(packagedir)/etc/$(PACKAGE)/po
35 styledir = $(packagedir)/etc/$(PACKAGE)/styles
36 else
37 icondir = $(pkgdatadir)/icons
38 catalogdir = $(pkgdatadir)/po
39 styledir = $(pkgdatadir)/styles
40 endif
41
42 disticondir = $(distdir)/icons
43 distcatalogdir = $(distdir)/po
44 diststyledir = $(distdir)/styles
45
46 install-data-local: $(TARGETS)
47         for d in $(pkgdatadir) $(icondir) $(catalogdir) $(styledir); do \
48                 $(top_srcdir)/mkinstalldirs $$d; \
49         done
50         @list="$(ICONS)"; for p in $$list; do \
51           if test -f $$p; then \
52             echo " $(INSTALL_DATA) $$p $(icondir)/"; \
53              $(INSTALL_DATA) $$p $(icondir)/; \
54           else :; fi; \
55         done
56         @list="$(CATALOGS)"; for p in $$list; do \
57           if test -f $$p; then \
58             echo " $(INSTALL_DATA) $$p $(catalogdir)/"; \
59              $(INSTALL_DATA) $$p $(catalogdir)/; \
60           else :; fi; \
61         done
62         @list="$(STYLES)"; for p in $$list; do \
63           if test -f $$p; then \
64             echo " $(INSTALL_DATA) $$p $(styledir)/"; \
65              $(INSTALL_DATA) $$p $(styledir)/; \
66           else :; fi; \
67         done
68
69 dist-hook:
70         for d in $(distpkgdatadir) $(disticondir) $(distcatalogdir) \
71         $(diststyledir); do \
72                 $(top_srcdir)/mkinstalldirs $$d; \
73         done
74         @list="$(ICONS)"; for p in $$list; do \
75           if test -f $$p; then \
76             echo " $(INSTALL_DATA) $$p $(disticondir)/"; \
77              $(INSTALL_DATA) $$p $(disticondir)/; \
78           else :; fi; \
79         done
80         @list="$(CATALOGS)"; for p in $$list; do \
81           if test -f $$p; then \
82             echo " $(INSTALL_DATA) $$p $(distcatalogdir)/"; \
83              $(INSTALL_DATA) $$p $(distcatalogdir)/; \
84           else :; fi; \
85         done
86         @list="$(STYLES)"; for p in $$list; do \
87           if test -f $$p; then \
88             echo " $(INSTALL_DATA) $$p $(diststyledir)/"; \
89              $(INSTALL_DATA) $$p $(diststyledir)/; \
90           else :; fi; \
91         done