Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-07 Thread Andy Wong
It works.Thanks jow for the details. At 2016-01-05 18:45:47, "Jo-Philipp Wich" wrote: >Each line in Make is started in a new shell. Your added lines are >executed as (simplified): > >bash -c 'if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then' >bash -c '$(INSTALL_DIR)

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-05 Thread Andy Wong
Hi.I not quite understand.I've change the install part as below: define Package/openwrt-dist-luci/install #!/bin/sh $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller $(INSTALL_DATA) ./files/luci/controller/$(2).lua $(1)/usr/lib/lua/luci/controller/$(2).lua $(INSTALL_DIR)

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-05 Thread Jo-Philipp Wich
Each line in Make is started in a new shell. Your added lines are executed as (simplified): bash -c 'if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then' bash -c '$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n' bash -c '$(INSTALL_DATA) ./files/luci/i18n/$(2).zh-cn.lmo $(1)/usr/lib/lua/luci/i18n' bash

[OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Andy Wong
# # Copyright (C) 2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v3. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=openwrt-dist-luci PKG_VERSION:=1.3.8 PKG_RELEASE:=1 PKG_LICENSE:=GPLv3 PKG_LICENSE_FILES:=LICENSE

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Jo-Philipp Wich
Hi. Lines in the isntall section must be indented with at least one tab since they're shell instructions. ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Andy Wong
Thanks.I have indented like this:define Package/openwrt-dist-luci/install#!/bin/sh $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller$(INSTALL_DATA) ./files/luci/controller/$(2).lua $(1)/usr/lib/lua/luci/controller/$(2).lua $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Luiz Angelo Daros de Luca
Andy, Make runs one line per time. Make the "if" inline or backslash each newline (adding semicolon when needed) Regards Em seg, 4 de jan de 2016 11:56, Andy Wong escreveu: > > For no misunderstanding.Here is the error now > http://pastebin.com/t4Rb08kA > > > > > > > 在

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Andy Wong
For no misunderstanding.Here is the error now http://pastebin.com/t4Rb08kA 在 2016-01-04 21:18:14,"Andy Wong" 写道: >Thanks.I have indented like this:define >Package/openwrt-dist-luci/install#!/bin/sh $(INSTALL_DIR) >$(1)/usr/lib/lua/luci/controller