forked from pool/b43-fwcutter
26 lines
656 B
Diff
26 lines
656 B
Diff
--- Makefile
|
|
+++ Makefile
|
|
@@ -2,6 +2,7 @@
|
|
|
|
CC ?= cc
|
|
PREFIX ?= /usr/local
|
|
+MANDIR ?= $(PREFIX)/man
|
|
CFLAGS ?= -Os -fomit-frame-pointer
|
|
CFLAGS += -std=c99 -Wall -pedantic -D_BSD_SOURCE
|
|
LDFLAGS ?=
|
|
@@ -22,10 +23,10 @@
|
|
$(CC) $(CFLAGS) -o $(BIN) $(OBJECTS) $(LDFLAGS)
|
|
|
|
install: all
|
|
- -install -d -o 0 -g 0 -m 755 $(PREFIX)/bin/
|
|
- -install -o 0 -g 0 -m 755 $(BIN) $(PREFIX)/bin/
|
|
- -install -d -o 0 -g 0 -m 755 $(PREFIX)/man/man1/
|
|
- -install -o 0 -g 0 -m 644 $(BIN).1 $(PREFIX)/man/man1/
|
|
+ -mkdir -p $(PREFIX)/bin
|
|
+ -install -m 755 $(BIN) $(PREFIX)/bin/
|
|
+ -mkdir -p $(MANDIR)/man1/
|
|
+ -install -m 644 $(BIN).1 $(MANDIR)/man1/
|
|
|
|
clean:
|
|
-rm -f *.o $(BIN)
|