summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: d76be9a2de8b0b8b5838a7a4d4a738fca348bed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include build/config.mk

MODULES = applications/* libs/* modules/* themes/* i18n/*
LUA_TARGET = compile
OS:=$(shell uname)
export OS
ifeq ($(OS),Darwin)
  MODULES += contrib/luaposix
endif

.PHONY: all build clean host hostclean

all: build

build:
	for i in $(MODULES); do make -C$$i $(LUA_TARGET); done

clean:
	for i in $(MODULES); do make -C$$i clean; done

host: build
	mkdir -p host
	for i in $(MODULES); do cp $$i/dist/* host/ -R 2>/dev/null || true; done
	ln -sf .$(LUCI_INSTALLDIR) host/luci
	
hostclean: clean
	rm host -rf