-
Notifications
You must be signed in to change notification settings - Fork 5
openwrt Makefile
Dmitry Ponyatov edited this page Aug 9, 2019
·
2 revisions
OPENWRT_VER = 18.06.4
OPENWRT = openwrt-$(OPENWRT_VER)
OPENWRT_GZ = $(OPENWRT).tar.gz
.PHONY: all dirs gz src config build clean distclean
all: build
CWD = $(CURDIR)
GZ = $(CWD)/gz
dirs:
mkdir -p $(GZ) $(TMP) $(SRC)
gz: $(GZ)/$(OPENWRT_GZ)
$(GZ)/$(OPENWRT_GZ):
wget -c -O $@ https://github.com/openwrt/openwrt/archive/v$(OPENWRT_VER).tar.gz
src: $(OPENWRT)/README
$(OPENWRT)/README: $(GZ)/$(OPENWRT_GZ)
tar zx < $< && touch $@
cd $(OPENWRT) ; ./scripts/feeds update -a
cd $(OPENWRT) ; ./scripts/feeds install -a
config: $(OPENWRT)/.config
$(OPENWRT)/.config: $(OPENWRT)/README
build: $(OPENWRT)/.config
cd $(OPENWRT) ; make menuconfig