mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Add a way to prevent building of programs on Windows
This commit is contained in:
parent
8a04ee296b
commit
ce5cd0200b
1 changed files with 8 additions and 2 deletions
10
Makefile
10
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 := \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue