DATADIR = INSTALL = /usr/local/bin/ginstall -c DATAFILES = Adventurer.png Altinov.png Berlin.png Dominical72.png \ Ebony.png Harlequin.png Lcd.png NutBolt.png Primepov.png SadGreen.png \ Utretch.png \ Whitney.png \ Beat1.wav Beat2.wav Boing1.wav Challenge1.wav Cling1.wav GameOver1.wav \ Tick1.wav ShallWePlay.wav Victory1.wav Voosh.wav DISTFILES = configure.in configure README CREDITS COPYING Makefile.in \ install-sh extras2.conf 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 @cp -f $(DATADIR)/eboard_themes.conf $(DATADIR)/extras2.prevconf # 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 extras2.conf >> $(DATADIR)/eboard_themes.conf @cp -f $(DATADIR)/eboard_themes.conf $(DATADIR)/extras2.bkconf # for eboard 0.3.2 and newer only newer-install: @echo "Adding $(DATADIR)/themeconf.extras2" @cp -f extras2.conf $(DATADIR)/themeconf.extras2 install: common-install newer-install the-end PACKDIR = eboard-extras-2 dist: rm -rf $(PACKDIR) mkdir $(PACKDIR) cp -f $(DATAFILES) $(PACKDIR) cp -f $(DISTFILES) $(PACKDIR) tar zcvf $(PACKDIR).tar.gz $(PACKDIR) rm -rf $(PACKDIR) the-end: @echo "-----------------------------------------------------------------" @echo "eboard-extras pack 2 is installed" @echo "12 new piece sets, 10 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 2." @echo "-----------------------------------------------------------------"