From: Oliver Schmidt
Date: Wed, 8 May 2013 23:32:48 +0000 (+0200)
Subject: Hack: Changed TARGET order to have apple2enh.lib available for convert.system.
X-Git-Tag: V2.14~10
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=00bb0f9704f3ba27e2f7b1e2e9d3dedc6639c12f;p=cc65
Hack: Changed TARGET order to have apple2enh.lib available for convert.system.
There's a quite special case of a targetutil for the TARGET geos-apple having to be
built as TARGET apple2enh binary. We can't just add a dependency to ../lib/apple2enhlib
because the TARGETs are built in individual make instances (because of vpath).
Doing that the "right way" would be _very_ complicated and would turn the Makefiles way
less readable. Therefore I decided to solve that by just reordering the TARGETs. Surely
this won't work if i.e. 'make geos-apple' is entered on a clean system. But still I consider
it appropriate.
I ordered the TARGETs btw so that they are more in an alphabetical order...
---
diff --git a/libsrc/Makefile b/libsrc/Makefile
index ea4864994..ae691697d 100644
--- a/libsrc/Makefile
+++ b/libsrc/Makefile
@@ -10,12 +10,12 @@ CBMS = c128 \
GEOS = geos-apple \
geos-cbm
-TARGETS = $(CBMS) \
- $(GEOS) \
- apple2 \
+TARGETS = apple2 \
apple2enh \
atari \
atmos \
+ $(CBMS) \
+ $(GEOS) \
lynx \
nes \
supervision