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