From 401478327523e9b99bc32f557a51230bfdcd1b36 Mon Sep 17 00:00:00 2001 From: Greg King Date: Sun, 3 Jul 2016 02:14:33 -0400 Subject: [PATCH] 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). --- samples/Makefile | 2 ++ 1 file changed, 2 insertions(+) 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