From: Greg King Date: Sun, 3 Jul 2016 06:14:33 +0000 (-0400) Subject: Made the samples Makefile run cl65 only when we want a disk image. X-Git-Tag: V2.16~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=401478327523e9b99bc32f557a51230bfdcd1b36;p=cc65 Made the samples Makefile run cl65 only when we want a disk image. 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). --- diff --git a/samples/Makefile b/samples/Makefile index e7fdfd393..00a9ce41d 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -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