mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 16:33: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:
parent
90b2f5aff8
commit
4014783275
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user