mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-08-02 12:59:43 +08:00
24 lines
873 B
Makefile
24 lines
873 B
Makefile
clean:
|
|
compile:
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
LUCI_NAME:=luci-lib-dummy
|
|
INCLUDE_DIR:=./dummy
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
install:
|
|
[ -n "$(APP_STORE_VERSION)" ]
|
|
mkdir -p "$(DESTDIR)/www/luci-static"
|
|
cp -a "$(FRONTEND_DIST)/luci-static/istore" "$(DESTDIR)/www/luci-static/"
|
|
$(SED) 's#\.js"#.js?v=$(APP_STORE_VERSION)"#g' "$(DESTDIR)/www/luci-static/istore/index.js"
|
|
mkdir -p "$(DESTDIR)/etc/opkg/keys"
|
|
echo "$(APP_STORE_VERSION)" > "$(DESTDIR)/etc/.app_store.version"
|
|
cp -a ./compat.conf "$(DESTDIR)/etc/opkg/compatfeeds.conf"
|
|
cp -a ./key-build.pub $(DESTDIR)/etc/opkg/keys/`$(STAGING_DIR_HOST)/bin/usign -F -p ./key-build.pub`
|
|
mkdir -p "$(DESTDIR)$(LUCI_LIBRARYDIR)/i18n"
|
|
$(foreach lang,$(LUCI_LANGUAGES),$(foreach po,$(wildcard ${CURDIR}/po/$(lang)/*.po), \
|
|
po2lmo $(po) \
|
|
$(DESTDIR)$(LUCI_LIBRARYDIR)/i18n/$(basename $(notdir $(po))).$(lang).lmo;))
|