From c25f5e775b6f9fc2782c3aa4b8fadd513de22cf1 Mon Sep 17 00:00:00 2001 From: CN_SZTL <22235437+1715173329@users.noreply.github.com> Date: Thu, 17 Jun 2021 11:35:56 +0800 Subject: [PATCH] build(Makefile): correct build path (#24) On OpenWrt, buildbot will copy all files from src to builddir root. Fixes: 8b6739a16cf7be ("build: format OpenWrt Makefile and fix CMakeLists (#23)") Signed-off-by: Tianling Shen --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f2952acb..211da981 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=UA2F PKG_VERSION:=3.7 -PKG_RELEASE:=11 +PKG_RELEASE:=12 PKG_LICENSE:=GPL-3.0-only PKG_LICENSE_FILE:=LICENSE @@ -26,12 +26,12 @@ EXTRA_LDFLAGS += -lmnl -lnetfilter_queue -lipset define Build/Compile $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) \ - $(PKG_BUILD_DIR)/src/ua2f.c -o $(PKG_BUILD_DIR)/src/ua2f + $(PKG_BUILD_DIR)/ua2f.c -o $(PKG_BUILD_DIR)/ua2f endef define Package/ua2f/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ua2f $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ua2f $(1)/usr/bin/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./init/ua2f $(1)/etc/init.d/ua2f endef