changed to also remove dynamically generated ILBM file on 'clean' target
[rocksndiamonds.git] / graphics / gfx_classic / Makefile
index 086aea512a9425161fd6966e9ff52451883872df..59baa0ea4878c429bb36d52822e1613074ef2d3a 100644 (file)
 # configuration
 # -----------------------------------------------------------------------------
 
-RND = ../rocksndiamonds
+RND = ../../rocksndiamonds
 
 RM = rm -f
 
+# EXT = pcx
 EXT = png
 
 FILES = RocksBusy.$(EXT)       \
-       RocksCE.$(EXT)          \
        RocksDC.$(EXT)          \
        RocksDC2.$(EXT)         \
        RocksDoor.$(EXT)        \
@@ -35,9 +35,9 @@ FILES = RocksBusy.$(EXT)      \
        RocksMore.$(EXT)        \
        RocksSP.$(EXT)          \
        RocksScreen.$(EXT)      \
-       RocksToons.$(EXT)
-
-# FILES_GENERATED = RocksCE.$(EXT)
+       RocksToons.$(EXT)       \
+                               \
+       RocksCE.$(EXT)          # dynamically generated from template
 
 
 # -----------------------------------------------------------------------------
@@ -57,7 +57,9 @@ RocksCE.ilbm: RocksCE-template.ilbm
        bmptoppm RocksCE.bmp | ppmtoilbm > RocksCE.ilbm
        $(RM) RocksCE.bmp
 
-clean-gfx:
+clean:
        @for i in $(FILES); do                  \
+               echo "$(RM) $$i";               \
                $(RM) $$i;                      \
        done
+       $(RM) RocksCE.ilbm