From: Robby Workman <rworkman@slackware.com>
To: linux-wireless@vger.kernel.org
Cc: antiwire@gmail.com
Subject: [PATCH] iw: Makefile changes for easier packaging
Date: Tue, 18 Nov 2008 20:18:24 -0800 (PST) [thread overview]
Message-ID: <alpine.LNX.1.10.0811182015230.6923@bob.slackware.com> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 140 bytes --]
Attached is a trivial patch to make packaging a bit easier.
No strong feelings either way, so rejection will cause no
hard feelings :-)
-RW
[-- Attachment #2: Type: TEXT/PLAIN, Size: 1234 bytes --]
Trivial patch for easier packaging of iw
Signed-off-by: Robby Workman <rworkman@slackware.com>
---
diff --git a/Makefile b/Makefile
index 3fa0a83..df59b51 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,14 @@
MAKEFLAGS += --no-print-directory
+PREFIX ?= /usr
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man
+
MKDIR ?= mkdir -p
INSTALL ?= install
-PREFIX ?= /usr
CC ?= "gcc"
+
CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration `pkg-config --cflags libnl-1`
CFLAGS += -O2 -g
LDFLAGS += `pkg-config --libs libnl-1`
@@ -49,11 +53,11 @@ check:
install: iw iw.8.gz
@$(NQ) ' INST iw'
- $(Q)$(MKDIR) $(DESTDIR)$(PREFIX)/bin/
- $(Q)$(INSTALL) -m 755 -o root -g root -t $(DESTDIR)$(PREFIX)/bin/ iw
+ $(Q)$(MKDIR) $(DESTDIR)$(BINDIR)
+ $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(BINDIR) iw
@$(NQ) ' INST iw.8'
- $(Q)$(MKDIR) $(DESTDIR)$(PREFIX)/share/man/man8/
- $(Q)$(INSTALL) -m 644 -o root -g root -t $(DESTDIR)$(PREFIX)/share/man/man8/ iw.8.gz
+ $(Q)$(MKDIR) $(DESTDIR)$(MANDIR)/man8/
+ $(Q)$(INSTALL) -m 644 -t $(DESTDIR)$(MANDIR)/man8/ iw.8.gz
clean:
$(Q)rm -f iw *.o *~ *.gz version.h *-stamp
next reply other threads:[~2008-11-19 5:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 4:18 Robby Workman [this message]
2008-11-19 11:58 ` [PATCH] iw: Makefile changes for easier packaging Johannes Berg
2008-11-19 16:18 ` Robby Workman
2008-11-19 20:24 ` Johannes Berg
2008-11-19 21:08 ` Robby Workman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.1.10.0811182015230.6923@bob.slackware.com \
--to=rworkman@slackware.com \
--cc=antiwire@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox