1
2DATADIR = @DATADIR@
3INSTALL = @INSTALL@
4
5DATAFILES = Alpha.png Diagram.png Kingdom.png Slics.png WCN.png \
6            Book.png Dyche1.png Leipzig.png Staunton.png Yahoo.png \
7            Chap.png Dyche2.png Mayan.png Traveler.png \
8            ChessBase.png Enquil.png OldClassicDark.png Usual.png \
9            Cmf.png Jumbo.png Rastapov.png Vision.png \
10            Draw1.wav Move1.wav Tell1.wav
11
12all:
13	@echo "run \"make install\" as root to install"
14
15common-install:
16	@echo "--> Copying theme files..."
17	@list='$(DATAFILES)'; for p in $$list; do \
18          if test -f $$p; then \
19            echo "  $(INSTALL) $$p $(DATADIR)/`echo $$p`" ; \
20            $(INSTALL) -m 0644 $$p $(DATADIR)/`echo $$p`; \
21          else :; fi; \
22        done
23	@cp -f $(DATADIR)/eboard_themes.conf $(DATADIR)/extras1.prevconf
24
25# for eboard 0.3.1 and older (would work on newer ones too,
26# but it isn't package-friendly for people packaging for
27# Debian, Red Hat, etc.)
28compatible-install:
29	@echo "Updating $(DATADIR)/eboard_themes.conf"
30	@cat extras1.conf >> $(DATADIR)/eboard_themes.conf
31	@cp -f $(DATADIR)/eboard_themes.conf $(DATADIR)/extras1.bkconf
32
33
34# for eboard 0.3.2 and newer only
35newer-install:
36	@echo "Adding $(DATADIR)/themeconf.extras1"
37	@cp -f extras1.conf $(DATADIR)/themeconf.extras1
38
39
40install: common-install @MY_TARGET@ the-end
41
42
43the-end:
44	@echo "-----------------------------------------------------------------"
45	@echo "eboard-extras pack 1 is installed"
46	@echo "22 new piece sets, 3 new sounds"
47	@echo "The files should be available in eboard next time"
48	@echo "you start it up. If you upgrade eboard in the future and"
49	@echo "these files \"disappear\" from the menus, reinstall the"
50	@echo "eboard-extras pack 1."
51	@echo "-----------------------------------------------------------------"
52
53