X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=graphics%2Fgfx_classic%2FMakefile;h=2c27a4b2b5ea263629198d8bcfd39b2e542e9adc;hp=086aea512a9425161fd6966e9ff52451883872df;hb=b641818c787e48bbf03ce2a0cd5b542c4c21e523;hpb=713abb0f6b9ff07053c37db3cf0cbc37335a0852 diff --git a/graphics/gfx_classic/Makefile b/graphics/gfx_classic/Makefile index 086aea51..2c27a4b2 100644 --- a/graphics/gfx_classic/Makefile +++ b/graphics/gfx_classic/Makefile @@ -4,7 +4,7 @@ # (c) 1995-2015 by Artsoft Entertainment # Holger Schemel # info@artsoft.org -# http://www.artsoft.org/ +# https://www.artsoft.org/ # ----------------------------------------------------------------------------- # graphics/gfx_classic/Makefile # ============================================================================= @@ -13,31 +13,36 @@ # configuration # ----------------------------------------------------------------------------- -RND = ../rocksndiamonds +RND = ../../rocksndiamonds RM = rm -f +# EXT = pcx EXT = png -FILES = RocksBusy.$(EXT) \ - RocksCE.$(EXT) \ - RocksDC.$(EXT) \ - RocksDC2.$(EXT) \ - RocksDoor.$(EXT) \ - RocksEMC.$(EXT) \ - RocksElements.$(EXT) \ - RocksFontBig.$(EXT) \ - RocksFontDC.$(EXT) \ - RocksFontEM.$(EXT) \ - RocksFontMedium.$(EXT) \ - RocksFontSmall.$(EXT) \ - RocksHeroes.$(EXT) \ - RocksMore.$(EXT) \ - RocksSP.$(EXT) \ - RocksScreen.$(EXT) \ - RocksToons.$(EXT) - -# FILES_GENERATED = RocksCE.$(EXT) +FILES = RocksBusy.$(EXT) \ + RocksDC.$(EXT) \ + RocksDC2.$(EXT) \ + RocksDF.$(EXT) \ + RocksDoor.$(EXT) \ + RocksDoor2.$(EXT) \ + RocksDoorMM.$(EXT) \ + RocksEMC.$(EXT) \ + RocksElements.$(EXT) \ + RocksFontBig.$(EXT) \ + RocksFontDC.$(EXT) \ + RocksFontEM.$(EXT) \ + RocksFontMedium.$(EXT) \ + RocksFontSmall.$(EXT) \ + RocksHeroes.$(EXT) \ + RocksMM.$(EXT) \ + RocksMore.$(EXT) \ + RocksSP.$(EXT) \ + RocksScreen.$(EXT) \ + RocksToons.$(EXT) \ + RocksTouch.$(EXT) \ + \ + RocksCE.$(EXT) # dynamically generated from template # ----------------------------------------------------------------------------- @@ -52,12 +57,18 @@ all: $(FILES) %.png: %.ilbm ilbmtoppm $< | pnmtopng > $@ -RocksCE.ilbm: RocksCE-template.ilbm - $(RND) -e "create CE image RocksCE.bmp" - bmptoppm RocksCE.bmp | ppmtoilbm > RocksCE.ilbm +RocksCE.png: RocksCE-template.ilbm +ifneq ("$(wildcard RocksCE-template.ilbm)","") + $(RND) -e "create CE image ." + bmptoppm RocksCE.bmp | pnmtopng > $@ $(RM) RocksCE.bmp +endif -clean-gfx: +RocksCE-template.ilbm: + +clean: @for i in $(FILES); do \ + echo "$(RM) $$i"; \ $(RM) $$i; \ done + $(RM) RocksCE.ilbm