From 969c3b748816e690255d189e662e4102099d1e9d Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Tue, 7 May 2013 17:49:35 +0200
Subject: [PATCH] Allow to build just the binaries or just the libraries from
the top level Makefile.
---
Makefile | 7 +++++--
libsrc/Makefile | 4 ++--
src/Makefile | 8 ++++----
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index 336ecc85d..0233e042b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,15 +2,18 @@ all mostlyclean clean:
@$(MAKE) -C src --no-print-directory $@
@$(MAKE) -C libsrc --no-print-directory $@
-install uninstall:
+install uninstall bin:
@$(MAKE) -C src --no-print-directory $@
+lib:
+ @$(MAKE) -C libsrc --no-print-directory $@
+
%65:
@$(MAKE) -C src --no-print-directory $@
%:
@$(MAKE) -C libsrc --no-print-directory $@
-.PHONY: all mostlyclean clean install uninstall
+.PHONY: all mostlyclean clean install uninstall bin lib
.SUFFIXES:
diff --git a/libsrc/Makefile b/libsrc/Makefile
index 39a5e497e..4f8c622fe 100644
--- a/libsrc/Makefile
+++ b/libsrc/Makefile
@@ -47,11 +47,11 @@ endif
.SUFFIXES:
-.PHONY: all $(TARGETS) mostlyclean clean
+.PHONY: all lib $(TARGETS) mostlyclean clean
ifndef TARGET
-all: $(TARGETS)
+all lib: $(TARGETS)
$(TARGETS):
@$(MAKE) --no-print-directory $@
diff --git a/src/Makefile b/src/Makefile
index d5401e087..959478901 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -26,9 +26,9 @@ LDLIBS += -lm
.SUFFIXES:
-.PHONY: all $(PROGS) mostlyclean clean install uninstall
+.PHONY: all bin $(PROGS) mostlyclean clean install uninstall
-all: $(PROGS)
+all bin: $(PROGS)
mostlyclean:
$(RM) -r ../wrk
@@ -107,9 +107,9 @@ else # cmd.exe
.SUFFIXES:
-.PHONY: all mostlyclean clean
+.PHONY: all bin mostlyclean clean
-all:
+all bin:
msbuild cc65.sln /p:configuration=release /consoleloggerparameters:disableconsolecolor
mostlyclean:
--
2.39.5