Squashed commit of the following:
[project/luci.git] / Makefile
1 include build/config.mk
2
3 MODULES = applications/* libs/* modules/* themes/* i18n/*
4 LUA_TARGET = compile
5 OS:=$(shell uname)
6 export OS
7 ifeq ($(OS),Darwin)
8 MODULES += contrib/luaposix
9 endif
10
11 .PHONY: all build clean host hostclean
12
13 all: build
14
15 build:
16 for i in $(MODULES); do make -C$$i $(LUA_TARGET); done
17
18 clean:
19 for i in $(MODULES); do make -C$$i clean; done
20
21 host: build
22 mkdir -p host
23 for i in $(MODULES); do cp $$i/dist/* host/ -R 2>/dev/null || true; done
24 ln -sf .$(LUCI_INSTALLDIR) host/luci
25
26 hostclean: clean
27 rm host -rf