mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #91 from Arcterus/makefile
Add a way to prevent building of programs on Windows
This commit is contained in:
commit
b5fe551295
1 changed files with 8 additions and 2 deletions
10
Makefile
10
Makefile
|
@ -27,15 +27,21 @@ PROGS := \
|
||||||
truncate \
|
truncate \
|
||||||
users \
|
users \
|
||||||
wc \
|
wc \
|
||||||
whoami \
|
|
||||||
yes \
|
yes \
|
||||||
tty \
|
tty \
|
||||||
|
|
||||||
|
UNIX_PROGS := \
|
||||||
|
whoami \
|
||||||
|
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
|
PROGS := $(PROGS) $(UNIX_PROGS)
|
||||||
|
endif
|
||||||
|
|
||||||
BUILD ?= $(PROGS)
|
BUILD ?= $(PROGS)
|
||||||
|
|
||||||
# Output names
|
# Output names
|
||||||
EXES := \
|
EXES := \
|
||||||
$(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS)))
|
$(sort $(filter $(BUILD),$(filter-out $(DONT_BUILD),$(PROGS))))
|
||||||
|
|
||||||
# Programs with usable tests
|
# Programs with usable tests
|
||||||
TEST_PROGS := \
|
TEST_PROGS := \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue