2014-08-05 16:40:51 +01:00
|
|
|
# Copyright (c) 2014 Cesanta Software
|
|
|
|
# All rights reserved
|
|
|
|
|
2016-03-09 10:59:32 +01:00
|
|
|
# `wildcard ./*/` works in both linux and linux/wine, while `wildcard */` enumerates nothing under wine
|
|
|
|
SUBDIRS = $(sort $(dir $(wildcard ./*/)))
|
2016-04-12 09:40:07 +03:00
|
|
|
SUBDIRS:=$(filter-out ./ ./CC3200/ ./ESP8266_RTOS/ ./MSP432/, $(SUBDIRS))
|
2016-03-08 13:27:34 +02:00
|
|
|
|
|
|
|
ifeq ($(OS), Windows_NT)
|
2016-03-09 10:59:32 +01:00
|
|
|
SUBDIRS:=$(filter-out ./load_balancer/ ./netcat/ ./raspberry_pi_mjpeg_led/ ./captive_dns_server/, $(SUBDIRS))
|
2016-03-08 13:27:34 +02:00
|
|
|
endif
|
2010-05-03 21:46:42 +01:00
|
|
|
|
2014-10-10 13:58:45 +01:00
|
|
|
.PHONY: $(SUBDIRS)
|
2012-09-24 21:25:06 +01:00
|
|
|
|
2014-10-10 13:58:45 +01:00
|
|
|
all: $(SUBDIRS)
|
2012-09-24 21:25:06 +01:00
|
|
|
|
2014-10-10 13:58:45 +01:00
|
|
|
$(SUBDIRS):
|
2015-09-08 13:49:03 +02:00
|
|
|
@$(MAKE) -C $@
|
2014-02-20 12:13:59 +00:00
|
|
|
|
2012-10-14 15:00:04 +01:00
|
|
|
clean:
|
2015-01-10 16:41:58 +08:00
|
|
|
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
|