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).
This commit is contained in:
@@ -34,6 +34,7 @@ else
|
|||||||
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(filter disk samples.%,$(MAKECMDGOALS)),)
|
||||||
TARGET_PATH := $(shell $(CL) --print-target-path)
|
TARGET_PATH := $(shell $(CL) --print-target-path)
|
||||||
|
|
||||||
EMD := $(wildcard $(TARGET_PATH)/$(SYS)/drv/emd/*)
|
EMD := $(wildcard $(TARGET_PATH)/$(SYS)/drv/emd/*)
|
||||||
@@ -54,6 +55,7 @@ DISK_apple2 = samples.dsk
|
|||||||
DISK_apple2enh = samples.dsk
|
DISK_apple2enh = samples.dsk
|
||||||
DISK_atari = samples.atr
|
DISK_atari = samples.atr
|
||||||
DISK_atarixl = samples.atr
|
DISK_atarixl = samples.atr
|
||||||
|
endif
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# System-dependent settings
|
# System-dependent settings
|
||||||
|
|||||||
Reference in New Issue
Block a user