Makefile: Add "default" target

This commit adds a target named "default" at the top of the Makefile. Since
make will build the first target by default, simply typing "make" will
build all images.

See http://stackoverflow.com/questions/27242905/makefile-all-vs-default-targets/27243940#27243940

Note: Since "darwin-x64" needs some work, it has been excluded from the
default list.
This commit is contained in:
Jean-Christophe Fillion-Robin 2016-07-16 01:17:36 -04:00
parent a3b7b03058
commit c237fc9925

View File

@ -1,6 +1,8 @@
DOCKER = docker
ORG = dockcross
default: base android-arm linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 windows-x86 windows-x64
android-arm: base android-arm/Dockerfile
$(DOCKER) build -t $(ORG)/android-arm android-arm
@ -44,4 +46,4 @@ base: Dockerfile
all: base android-arm darwin-x64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 windows-x86 windows-x64
.PHONY: all base android-arm darwin-x64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 windows-x86 windows-x64
.PHONY: default all base android-arm darwin-x64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 windows-x86 windows-x64