From ce5cd0200b8cb862527340415d64bcb700518330 Mon Sep 17 00:00:00 2001 From: Arcterus Date: Fri, 7 Feb 2014 19:35:03 -0800 Subject: [PATCH] Add a way to prevent building of programs on Windows --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f03f3067e..af38f5b5a 100644 --- a/Makefile +++ b/Makefile @@ -27,15 +27,21 @@ PROGS := \ truncate \ users \ wc \ - whoami \ yes \ tty \ +UNIX_PROGS := \ + whoami \ + +ifneq ($(OS),Windows_NT) + PROGS := $(PROGS) $(UNIX_PROGS) +endif + BUILD ?= $(PROGS) # Output names EXES := \ - $(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS))) + $(sort $(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS)))) # Programs with usable tests TEST_PROGS := \