mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-30 16:15:40 +00:00
Man page and mac installation fixes.
* fix minissdpd man page not getting installed * fix miniupnpc man page wasn't installed * fix minissdpd attempted to install init.d file on mac
This commit is contained in:
parent
e8c488f9e1
commit
f9549e86b1
@ -16,6 +16,7 @@ CFLAGS = -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
|
OS = $(shell uname -s)
|
||||||
|
|
||||||
#EXECUTABLES = minissdpd testminissdpd listifaces
|
#EXECUTABLES = minissdpd testminissdpd listifaces
|
||||||
EXECUTABLES = minissdpd testminissdpd testcodelength
|
EXECUTABLES = minissdpd testminissdpd testcodelength
|
||||||
@ -26,6 +27,8 @@ ALLOBJS = $(MINISSDPDOBJS) $(TESTMINISSDPDOBJS) testcodelength.o
|
|||||||
|
|
||||||
INSTALLPREFIX ?= $(PREFIX)/usr
|
INSTALLPREFIX ?= $(PREFIX)/usr
|
||||||
SBININSTALLDIR = $(INSTALLPREFIX)/sbin
|
SBININSTALLDIR = $(INSTALLPREFIX)/sbin
|
||||||
|
MANINSTALLDIR = $(INSTALLPREFIX)/share/man
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all clean install depend
|
.PHONY: all clean install depend
|
||||||
|
|
||||||
@ -37,8 +40,12 @@ clean:
|
|||||||
install: minissdpd
|
install: minissdpd
|
||||||
$(INSTALL) -d $(SBININSTALLDIR)
|
$(INSTALL) -d $(SBININSTALLDIR)
|
||||||
$(INSTALL) minissdpd $(SBININSTALLDIR)
|
$(INSTALL) minissdpd $(SBININSTALLDIR)
|
||||||
|
$(INSTALL) -d $(MANINSTALLDIR)/man1
|
||||||
|
$(INSTALL) minissdpd.1 $(MANINSTALLDIR)/man1/minissdpd.1
|
||||||
|
ifneq ($(OS), Darwin)
|
||||||
$(INSTALL) -d $(PREFIX)/etc/init.d
|
$(INSTALL) -d $(PREFIX)/etc/init.d
|
||||||
$(INSTALL) minissdpd.init.d.script $(PREFIX)/etc/init.d/minissdpd
|
$(INSTALL) minissdpd.init.d.script $(PREFIX)/etc/init.d/minissdpd
|
||||||
|
endif
|
||||||
|
|
||||||
minissdpd: $(MINISSDPDOBJS)
|
minissdpd: $(MINISSDPDOBJS)
|
||||||
$(CC) $(CFLAGS) -o $@ $(MINISSDPDOBJS)
|
$(CC) $(CFLAGS) -o $@ $(MINISSDPDOBJS)
|
||||||
|
@ -85,6 +85,7 @@ INSTALLPREFIX ?= $(PREFIX)/usr
|
|||||||
INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
|
INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
|
||||||
INSTALLDIRLIB = $(INSTALLPREFIX)/lib
|
INSTALLDIRLIB = $(INSTALLPREFIX)/lib
|
||||||
INSTALLDIRBIN = $(INSTALLPREFIX)/bin
|
INSTALLDIRBIN = $(INSTALLPREFIX)/bin
|
||||||
|
INSTALLDIRMAN = $(INSTALLPREFIX)/share/man
|
||||||
|
|
||||||
FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
|
FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
|
||||||
ifneq ($(OS), AmigaOS)
|
ifneq ($(OS), AmigaOS)
|
||||||
@ -142,6 +143,11 @@ else
|
|||||||
$(INSTALL) -m 755 upnpc-shared $(INSTALLDIRBIN)/upnpc
|
$(INSTALL) -m 755 upnpc-shared $(INSTALLDIRBIN)/upnpc
|
||||||
endif
|
endif
|
||||||
$(INSTALL) -m 755 external-ip.sh $(INSTALLDIRBIN)/external-ip
|
$(INSTALL) -m 755 external-ip.sh $(INSTALLDIRBIN)/external-ip
|
||||||
|
ifneq ($(OS), AmigaOS)
|
||||||
|
$(INSTALL) -d $(INSTALLDIRMAN)/man3
|
||||||
|
$(INSTALL) man3/miniupnpc.3 $(INSTALLDIRMAN)/man3/miniupnpc.3
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
cleaninstall:
|
cleaninstall:
|
||||||
$(RM) -r $(INSTALLDIRINC)
|
$(RM) -r $(INSTALLDIRINC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user