c93b88af39
Building samples one by one has become a significant pessimization nowadays, when multicore machines are much more common than single core ones, so get rid of the shell loop which built the samples one by one and use make targets to let make build as many targets at once as desired. Closes https://github.com/wxWidgets/wxWidgets/pull/536
18 lines
473 B
Makefile
18 lines
473 B
Makefile
#
|
|
# Makefile : Builds wxWindows samples for Unix.
|
|
#
|
|
|
|
SAMPLES_SUBDIRS=@SAMPLES_SUBDIRS@
|
|
|
|
ALL_TARGETS := all clean distclean
|
|
|
|
$(ALL_TARGETS): $(SAMPLES_SUBDIRS)
|
|
|
|
# The use of both MAKECMDGOALS and .TARGETS here allows the same makefile to be
|
|
# used both with GNU make and BSD make: only one of these variables will be
|
|
# defined for the particular make program flavour.
|
|
$(SAMPLES_SUBDIRS):
|
|
$(MAKE) -C $@ $(MAKECMDGOALS) $(.TARGETS)
|
|
|
|
.PHONY: $(ALL_TARGETS) $(SAMPLES_SUBDIRS)
|