mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +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
|
||||
RUSTC ?= rustc
|
||||
RM = rm
|
||||
RM := rm
|
||||
|
||||
# Flags
|
||||
RUSTCFLAGS :=
|
||||
|
@ -12,8 +12,7 @@ TESTS := cat
|
|||
|
||||
# Utils stuff
|
||||
EXES_PATHS := $(addprefix build/,$(EXES))
|
||||
|
||||
command = sh -c '$(1)'
|
||||
command := sh -c '$(1)'
|
||||
|
||||
# Main exe build rule
|
||||
define EXE_BUILD
|
||||
|
@ -34,10 +33,10 @@ endef
|
|||
all: build $(EXES_PATHS)
|
||||
|
||||
test: tmp $(addprefix test_,$(TESTS))
|
||||
rm -rf tmp
|
||||
$(RM) -rf tmp
|
||||
|
||||
clean:
|
||||
rm -rf build tmp
|
||||
$(RM) -rf build tmp
|
||||
|
||||
build:
|
||||
mkdir build
|
||||
|
@ -50,3 +49,4 @@ $(foreach exe,$(EXES),$(eval $(call EXE_BUILD,$(exe))))
|
|||
$(foreach test,$(TESTS),$(eval $(call TEST_BUILD,$(test))))
|
||||
|
||||
.PHONY: all test clean
|
||||
|
||||
|
|
Loading…
Reference in a new issue