Merge pull request #6 from wilmoore/tidy-makefile

Alignment consistency in Makefile
This commit is contained in:
Jordi Boggiano 2013-10-25 09:05:19 -07:00
commit 6b7c8f65a0

View file

@ -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