File: Makefile.in

package info (click to toggle)
eboard-extras-pack1 2-1
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 504 kB
  • ctags: 1
  • sloc: sh: 153; makefile: 74
file content (51 lines) | stat: -rw-r--r-- 1,741 bytes parent folder | download | duplicates (3)
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

DATADIR = $(DESTDIR)@DATADIR@
INSTALL = @INSTALL@

DATAFILES = Alpha.png Diagram.png Kingdom.png Slics.png WCN.png \
            Book.png Dyche1.png Leipzig.png Staunton.png Yahoo.png \
            Chap.png Dyche2.png Mayan.png Traveler.png \
            ChessBase.png Enquil.png OldClassicDark.png Usual.png \
            Cmf.png Jumbo.png Rastapov.png Vision.png \
            Draw1.wav Move1.wav Tell1.wav

all:
	@echo "run \"make install\" as root to install"

common-install:
	@echo "--> Copying theme files..."
	@list='$(DATAFILES)'; for p in $$list; do \
          if test -f $$p; then \
            echo "  $(INSTALL) $$p $(DATADIR)/`echo $$p`" ; \
            $(INSTALL) -m 0644 $$p $(DATADIR)/`echo $$p`; \
          else :; fi; \
        done

# for eboard 0.3.1 and older (would work on newer ones too,
# but it isn't package-friendly for people packaging for
# Debian, Red Hat, etc.)
compatible-install:
	@echo "Updating $(DATADIR)/eboard_themes.conf"
	@cat extras1.conf >> $(DATADIR)/eboard_themes.conf
	@cp -f $(DATADIR)/eboard_themes.conf $(DATADIR)/extras1.bkconf


# for eboard 0.3.2 and newer only
newer-install:
	@echo "Adding $(DATADIR)/themeconf.extras1"
	@cp -f extras1.conf $(DATADIR)/themeconf.extras1


install: common-install @MY_TARGET@ the-end


the-end:
	@echo "-----------------------------------------------------------------"
	@echo "eboard-extras pack 1 is installed"
	@echo "22 new piece sets, 3 new sounds"
	@echo "The files should be available in eboard next time"
	@echo "you start it up. If you upgrade eboard in the future and"
	@echo "these files \"disappear\" from the menus, reinstall the"
	@echo "eboard-extras pack 1."
	@echo "-----------------------------------------------------------------"