<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>#</div><div># Copyright (C) 2015 OpenWrt.org</div><div>#</div><div># This is free software, licensed under the GNU General Public License v3.</div><div># See /LICENSE for more information.</div><div>#</div><div><br></div><div>include $(TOPDIR)/rules.mk</div><div><br></div><div>PKG_NAME:=openwrt-dist-luci</div><div>PKG_VERSION:=1.3.8</div><div>PKG_RELEASE:=1</div><div><br></div><div>PKG_LICENSE:=GPLv3</div><div>PKG_LICENSE_FILES:=LICENSE</div><div><br></div><div>PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)</div><div><br></div><div>include $(INCLUDE_DIR)/package.mk</div><div><br></div><div>define Package/openwrt-dist-luci/Default</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SECTION:=luci</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>CATEGORY:=LuCI</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>SUBMENU:=3. Applications</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>TITLE:=$(1) LuCI interface</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>PKGARCH:=all</div><div>endef</div><div><br></div><div>Package/luci-app-chinadns = $(call Package/openwrt-dist-luci/Default,ChinaDNS)</div><div>Package/luci-app-redsocks2 = $(call Package/openwrt-dist-luci/Default,RedSocks2)</div><div><span style="line-height: 1.7;">Package/luci-app-pdnsd = $(call Package/openwrt-dist-luci/Default,pdnsd)</span></div><div>Package/luci-app-adbyby = $(call Package/openwrt-dist-luci/Default,adbyby)</div><div><br></div><div>define Package/openwrt-dist-luci/description</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>LuCI Support for $(1).</div><div>endef</div><div><br></div><div>Package/luci-app-chinadns/description = $(call Package/openwrt-dist-luci/description,ChinaDNS)</div><div>Package/luci-app-redsocks2/description = $(call Package/openwrt-dist-luci/description,RedSocks2)</div><div><span style="line-height: 1.7;">Package/luci-app-pdnsd/description = $(call Package/openwrt-dist-luci/description,pdnsd)</span></div><div>Package/luci-app-adbyby/description = $(call Package/openwrt-dist-luci/description,adbyby)</div><div><br></div><div>define Build/Prepare</div><div>endef</div><div><br></div><div>define Build/Configure</div><div>endef</div><div><br></div><div>define Build/Compile</div><div>endef</div><div><br></div><div>define Package/openwrt-dist-luci/postinst</div><div>#!/bin/sh</div><div>if [ -z "$${IPKG_INSTROOT}" ]; then</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>( . /etc/uci-defaults/luci-$(1) ) && rm -f /etc/uci-defaults/luci-$(1)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>chmod 755 /etc/init.d/$(1) >/dev/null 2>&1</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/etc/init.d/$(1) enable >/dev/null 2>&1</div><div>fi</div><div>exit 0</div><div>endef</div><div><br></div><div>Package/luci-app-chinadns/postinst = $(call Package/openwrt-dist-luci/postinst,chinadns)</div><div>Package/luci-app-redsocks2/postinst = $(call Package/openwrt-dist-luci/postinst,redsocks2)</div><div><span style="line-height: 1.7;">Package/luci-app-pdnsd/postinst = $(call Package/openwrt-dist-luci/postinst,pdnsd)</span></div><div>Package/luci-app-adbyby/postinst = $(call Package/openwrt-dist-luci/postinst,adbyby)</div><div><br></div><div>define Package/openwrt-dist-luci/install</div><div>#!/bin/sh</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>$(INSTALL_DATA) ./files/luci/controller/$(2).lua $(1)/usr/lib/lua/luci/controller/$(2).lua</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>$(INSTALL_DATA) ./files/luci/model/cbi/$(2).lua $(1)/usr/lib/lua/luci/model/cbi/$(2).lua</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>$(INSTALL_DIR) $(1)/etc/uci-defaults</div><div>        $(INSTALL_BIN) ./files/root/etc/uci-defaults/luci-$(2) $(1)/etc/uci-defaults/luci-$(2)</div><div><b>if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then</b></div><div><span style="line-height: 1.7;">    </span><span style="line-height: 1.7;">    </span><b style="line-height: 1.7;">$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n</b></div><div><span style="line-height: 1.7;">    </span><span style="line-height: 1.7;">    </span><b style="line-height: 1.7;">$(INSTALL_DATA) ./files/luci/i18n/$(2).zh-cn.lmo $(1)/usr/lib/lua/luci/i18n</b></div><div><b style="line-height: 1.7;">fi</b></div><div><b style="line-height: 1.7;">exit 0</b></div><div>endef</div><div><br></div><div>Package/luci-app-chinadns/install = $(call Package/openwrt-dist-luci/install,$(1),chinadns)</div><div>Package/luci-app-redsocks2/install = $(call Package/openwrt-dist-luci/install,$(1),redsocks2)</div><div><span style="line-height: 1.7;">Package/luci-app-pdnsd/install = $(call Package/openwrt-dist-luci/install,$(1),pdnsd)</span></div><div>Package/luci-app-adbyby/install = $(call Package/openwrt-dist-luci/install,$(1),adbyby)</div><div><br></div><div>$(eval $(call BuildPackage,luci-app-chinadns))</div><div>$(eval $(call BuildPackage,luci-app-redsocks2))</div><div><span style="line-height: 1.7;">$(eval $(call BuildPackage,luci-app-pdnsd))</span></div><div>$(eval $(call BuildPackage,luci-app-adbyby))</div><div><br></div><div><br></div><div><b>With the highlighted "if,then" course.This error appear:</b></div><div><div><b>Makefile:97: *** missing separator.  Stop.</b></div></div><div><br></div><div>Line 97 is pointing to</div><div><span style="line-height: 23.8px;">Package/luci-app-chinadns/install = $(call Package/openwrt-dist-luci/install,$(1),chinadns)</span></div><div> </div><div>I've looked up the forum.Jow said t<span style="color: rgb(34, 34, 34); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(250, 250, 250);">his error almost always indicates that you used leading spaces in a place where a tab was expected.But mine did not use spaces.I</span><span style="line-height: 1.7;"> can't find other reason causing this error.So I came here for faster answer than the forum.</span></div></div><br><br><span title="neteasefooter"><p> </p></span>