smlinux/net/wireless-tools/makefile.patch
PktSurf f14cfce65d Added doinst.sh to net/irssi to preserve /etc/irssi.conf
Discarded old patch and added a new one to net/wireless-tools and fixed its build file
2024-11-01 21:11:19 +05:30

28 lines
768 B
Diff

--- a/Makefile 2024-10-30 10:45:37.791157442 +0000
+++ b/Makefile 2024-10-30 14:58:42.084973143 +0000
@@ -4,9 +4,7 @@
## Installation directory. By default, go in /usr/local.
## Distributions should probably use /, but they probably know better...
-ifndef PREFIX
- PREFIX = /usr/local
-endif
+PREFIX ?= /usr
## Compiler to use (modify this for cross compile).
CC = gcc
@@ -71,10 +69,10 @@
DYNAMIC_LINK= libiw.so
# Install directories
-INSTALL_DIR= $(PREFIX)/sbin/
-INSTALL_LIB= $(PREFIX)/lib/
-INSTALL_INC= $(PREFIX)/include/
-INSTALL_MAN= $(PREFIX)/man/
+INSTALL_DIR= $(DESTDIR)$(PREFIX)/bin/
+INSTALL_LIB= $(DESTDIR)$(PREFIX)/lib/
+INSTALL_INC= $(DESTDIR)$(PREFIX)/include/
+INSTALL_MAN= $(DESTDIR)$(PREFIX)/share/man/
# Various commands
RM = rm -f