Makefile 553 Bytes
Newer Older
Sergey Lyubka's avatar
Sergey Lyubka committed
1 2 3
# Copyright (c) 2014 Cesanta Software
# All rights reserved

4 5
# `wildcard ./*/` works in both linux and linux/wine, while `wildcard */` enumerates nothing under wine
SUBDIRS = $(sort $(dir $(wildcard ./*/)))
6
SUBDIRS:=$(filter-out ./ ./CC3200/ ./ESP8266_RTOS/ ./MSP432/, $(SUBDIRS))
7 8

ifeq ($(OS), Windows_NT)
9
  SUBDIRS:=$(filter-out ./load_balancer/ ./netcat/ ./raspberry_pi_mjpeg_led/ ./captive_dns_server/, $(SUBDIRS))
10
endif
11

12
.PHONY: $(SUBDIRS)
13

14
all: $(SUBDIRS)
15

16
$(SUBDIRS):
17
	@$(MAKE) -C $@
18

Sergey Lyubka's avatar
Sergey Lyubka committed
19
clean:
20
	for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done