]> git.sur5r.net Git - cc65/commitdiff
Made the samples Makefile run cl65 only when we want a disk image.
authorGreg King <gregdk@users.sf.net>
Sun, 3 Jul 2016 06:14:33 +0000 (02:14 -0400)
committerGreg King <gregdk@users.sf.net>
Sun, 3 Jul 2016 06:23:59 +0000 (02:23 -0400)
That change avoids an error message when we "make clean" from the top-level make-file (it removes the tools before it cleans the samples).

samples/Makefile

index e7fdfd3935692ae459a2b698252ddcef209eb2bc..00a9ce41d6d68617187f5f40711d9d23c622d0d3 100644 (file)
@@ -34,6 +34,7 @@ else
   LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
 endif
 
+ifneq ($(filter disk samples.%,$(MAKECMDGOALS)),)
 TARGET_PATH := $(shell $(CL) --print-target-path)
 
 EMD := $(wildcard $(TARGET_PATH)/$(SYS)/drv/emd/*)
@@ -54,6 +55,7 @@ DISK_apple2    = samples.dsk
 DISK_apple2enh = samples.dsk
 DISK_atari     = samples.atr
 DISK_atarixl   = samples.atr
+endif
 
 # --------------------------------------------------------------------------
 # System-dependent settings