mirror of
https://git.freestone.net/cramer/pcapmirror.git
synced 2026-03-01 01:29:26 +01:00
Compare commits
3 Commits
33237796c2
...
0.6.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 5629b0a6d6 | |||
| 075cdbcdd2 | |||
| 25dc160f11 |
13
Makefile
13
Makefile
@@ -20,8 +20,13 @@ TARGET = pcapmirror
|
|||||||
|
|
||||||
# Installation directory
|
# Installation directory
|
||||||
PREFIX = /usr
|
PREFIX = /usr
|
||||||
ifdef prefix
|
|
||||||
PREFIX = $(prefix)
|
ifndef BINDIR
|
||||||
|
BINDIR = $(DESTDIR)$(PREFIX)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef MANDIR
|
||||||
|
MANDIR = $(DESTDIR)$(PREFIX)/share/man
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Default rule
|
# Default rule
|
||||||
@@ -48,8 +53,8 @@ clean:
|
|||||||
# Install the executable
|
# Install the executable
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
install -s -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
|
install -s $(TARGET) $(BINDIR)/$(TARGET)
|
||||||
install -D $(TARGET).8 $(DESTDIR)$(PREFIX)/share/man/man8/$(TARGET).8
|
install $(TARGET).8 $(MANDIR)/man8/$(TARGET).8
|
||||||
|
|
||||||
|
|
||||||
# Uninstall the executable
|
# Uninstall the executable
|
||||||
|
|||||||
Reference in New Issue
Block a user