From: Johannes Berg Date: Tue, 16 Sep 2008 19:09:47 +0000 (+0200) Subject: add install target X-Git-Tag: v0.9~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0f79c4587a85f12267ce6a779c7d88f59f7d39a;p=thirdparty%2Fiw.git add install target --- diff --git a/Makefile b/Makefile index 45340e7..74cb1e1 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ MAKEFLAGS += --no-print-directory +INSTALL ?= install +PREFIX ?= /usr CC ?= "gcc" CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration CFLAGS += -I/lib/modules/`uname -r`/build/include @@ -32,5 +34,15 @@ iw: $(OBJS) check: $(Q)$(MAKE) all CC="REAL_CC=$(CC) CHECK=\"sparse -Wall\" cgcc" +%.gz: % + @$(NQ) ' GZIP' $< + $(Q)gzip < $< > $@ + +install: iw iw.8.gz + @$(NQ) ' INST iw' + $(Q)$(INSTALL) -o root -g root -t $(PREFIX)/bin iw + @$(NQ) ' INST iw.8' + $(Q)$(INSTALL) -o root -g root -t $(PREFIX)/share/man/man8/ iw.8.gz + clean: - $(Q)rm -f iw *.o *~ + $(Q)rm -f iw *.o *~ *.gz