1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

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:
Greg King 2016-07-03 02:14:33 -04:00
parent 90b2f5aff8
commit 4014783275

View 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