mirror of
https://github.com/uutils/coreutils
synced 2025-01-05 17:59:00 +00:00
Merge pull request #6 from wilmoore/tidy-makefile
Alignment consistency in Makefile
This commit is contained in:
commit
6b7c8f65a0
1 changed files with 17 additions and 17 deletions
10
Makefile
10
Makefile
|
@ -1,6 +1,6 @@
|
||||||
# Binaries
|
# Binaries
|
||||||
RUSTC ?= rustc
|
RUSTC ?= rustc
|
||||||
RM = rm
|
RM := rm
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
RUSTCFLAGS :=
|
RUSTCFLAGS :=
|
||||||
|
@ -12,8 +12,7 @@ TESTS := cat
|
||||||
|
|
||||||
# Utils stuff
|
# Utils stuff
|
||||||
EXES_PATHS := $(addprefix build/,$(EXES))
|
EXES_PATHS := $(addprefix build/,$(EXES))
|
||||||
|
command := sh -c '$(1)'
|
||||||
command = sh -c '$(1)'
|
|
||||||
|
|
||||||
# Main exe build rule
|
# Main exe build rule
|
||||||
define EXE_BUILD
|
define EXE_BUILD
|
||||||
|
@ -34,10 +33,10 @@ endef
|
||||||
all: build $(EXES_PATHS)
|
all: build $(EXES_PATHS)
|
||||||
|
|
||||||
test: tmp $(addprefix test_,$(TESTS))
|
test: tmp $(addprefix test_,$(TESTS))
|
||||||
rm -rf tmp
|
$(RM) -rf tmp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build tmp
|
$(RM) -rf build tmp
|
||||||
|
|
||||||
build:
|
build:
|
||||||
mkdir build
|
mkdir build
|
||||||
|
@ -50,3 +49,4 @@ $(foreach exe,$(EXES),$(eval $(call EXE_BUILD,$(exe))))
|
||||||
$(foreach test,$(TESTS),$(eval $(call TEST_BUILD,$(test))))
|
$(foreach test,$(TESTS),$(eval $(call TEST_BUILD,$(test))))
|
||||||
|
|
||||||
.PHONY: all test clean
|
.PHONY: all test clean
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue