From 68e4d86f9db8840f7235dd36c3f1a4f7742d4008 Mon Sep 17 00:00:00 2001 From: Arcterus Date: Thu, 26 Dec 2013 23:48:38 -0800 Subject: [PATCH] Added the ability to select which programs to compile --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d8d17163..440997bae 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ RM := rm RUSTCFLAGS := --opt-level=3 RMFLAGS := -# Output names -EXES := \ +# Possible programs +PROGS := \ cat \ dirname \ echo \ @@ -21,6 +21,11 @@ EXES := \ whoami \ yes \ +BUILD ?= $(PROGS) + +# Output names +EXES := \ + $(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS))) TESTS := \ cat \