Skip to content

Commit

Permalink
build(Makefile): correct build path (#24)
Browse files Browse the repository at this point in the history
On OpenWrt, buildbot will copy all files from src to builddir root.

Fixes: 8b6739a ("build: format OpenWrt Makefile and fix CMakeLists (#23)")

Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 authored Jun 17, 2021
1 parent 8b6739a commit c25f5e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c25f5e7

Please sign in to comment.