* Reworked host-Target for global Makefile
[project/luci.git] / Makefile
1 include build/config.mk
2
3 MODULES = applications/* core modules/* themes/*
4 LUA_TARGET = source
5
6
7 .PHONY: all build clean host hostclean
8
9 all: build
10
11 build:
12 for i in $(MODULES); do make -C$$i $(LUA_TARGET); done
13
14 clean:
15 for i in $(MODULES); do make -C$$i clean; done
16
17 host: build
18 mkdir -p host
19 for i in $(MODULES); do cp $$i/dist/* host/ -R 2>/dev/null || true; done
20 ln -sf .$(LUCI_INSTALLDIR) host/luci
21
22 hostclean: clean
23 rm host -rf