miniupnp/miniupnpc/Makefile

403 lines
12 KiB
Makefile
Raw Normal View History

2023-06-15 22:46:19 +00:00
# $Id: Makefile,v 1.150 2023/06/15 22:55:24 nanard Exp $
2011-09-27 20:25:35 +00:00
# MiniUPnP Project
# http://miniupnp.free.fr/
# https://miniupnp.tuxfamily.org/
# https://github.com/miniupnp/miniupnp
2023-06-15 22:46:19 +00:00
# (c) 2005-2023 Thomas Bernard
2011-09-27 20:25:35 +00:00
# to install use :
# $ make DESTDIR=/tmp/dummylocation install
2011-09-27 20:25:35 +00:00
# or
# $ INSTALLPREFIX=/usr/local make install
2012-04-06 14:06:30 +00:00
# or
# $ make install (default INSTALLPREFIX is /usr)
OS = $(shell $(CC) -dumpmachine)
2012-01-25 09:57:46 +00:00
VERSION = $(shell cat VERSION)
2012-01-23 23:14:43 +00:00
ifneq (, $(findstring darwin, $(OS)))
2012-01-23 23:14:43 +00:00
JARSUFFIX=mac
LIBTOOL ?= $(shell which libtool)
endif
ifneq (, $(findstring linux, $(OS)))
2012-01-25 10:07:02 +00:00
JARSUFFIX=linux
endif
ifneq (, $(findstring mingw, $(OS))$(findstring cygwin, $(OS))$(findstring msys, $(OS)))
2012-12-21 17:13:04 +00:00
JARSUFFIX=win32
endif
2012-01-23 23:14:43 +00:00
2012-10-16 04:59:05 +00:00
HAVE_IPV6 ?= yes
export HAVE_IPV6
2021-08-11 14:53:35 +00:00
# directories
INCDIR = include
SRCDIR = src
BUILD = build
2011-09-27 20:25:35 +00:00
CC ?= gcc
#AR = gar
2021-08-21 10:57:13 +00:00
#CFLAGS = -O -g
# to debug :
ASANFLAGS = -fsanitize=address -fsanitize=undefined -fsanitize=leak
#CFLAGS = -g -ggdb -O0 $(ASANFLAGS) -fno-omit-frame-pointer
#CPPFLAGS += -DDEBUG
#LDFLAGS += $(ASANFLAGS)
2012-05-01 18:49:43 +00:00
CFLAGS ?= -O
CFLAGS += -Wall
CFLAGS += -W -Wstrict-prototypes
CFLAGS += -fno-common
2021-08-11 14:53:35 +00:00
CPPFLAGS += -I$(BUILD)
CPPFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT
CPPFLAGS += -DMINIUPNPC_GET_SRC_ADDR
CPPFLAGS += -D_BSD_SOURCE
CPPFLAGS += -D_DEFAULT_SOURCE
ifneq (, $(findstring netbsd, $(OS)))
CPPFLAGS += -D_NETBSD_SOURCE
2016-09-03 07:34:15 +00:00
endif
ifeq (, $(findstring freebsd, $(OS))$(findstring darwin, $(OS)))
#CPPFLAGS += -D_POSIX_C_SOURCE=200112L
CPPFLAGS += -D_XOPEN_SOURCE=600
2015-09-04 10:16:16 +00:00
endif
2015-09-04 08:22:34 +00:00
#CFLAGS += -ansi
#CPPFLAGS += -DNO_GETADDRINFO
2021-08-21 10:57:13 +00:00
2021-08-11 14:53:35 +00:00
DEPFLAGS = -MM -MG
MKDIR = mkdir -p
2011-09-27 20:25:35 +00:00
INSTALL = install
SH = /bin/sh
JAVA = java
# see http://code.google.com/p/jnaerator/
#JNAERATOR = jnaerator-0.9.7.jar
#JNAERATOR = jnaerator-0.9.8-shaded.jar
#JNAERATORARGS = -library miniupnpc
#JNAERATOR = jnaerator-0.10-shaded.jar
#JNAERATOR = jnaerator-0.11-shaded.jar
# https://repo1.maven.org/maven2/com/nativelibs4java/jnaerator/0.12/jnaerator-0.12-shaded.jar
JNAERATOR = jnaerator-0.12-shaded.jar
JNAERATORARGS = -mode StandaloneJar -runtime JNAerator -library miniupnpc
#JNAERATORBASEURL = http://jnaerator.googlecode.com/files/
JNAERATORBASEURL = https://repo1.maven.org/maven2/com/nativelibs4java/jnaerator/0.12
2020-10-06 22:17:16 +00:00
ifneq (, $(findstring sun, $(OS))$(findstring solaris, $(OS)))
2016-12-30 19:07:59 +00:00
LDLIBS=-lsocket -lnsl -lresolv
CPPFLAGS += -D__EXTENSIONS__
CFLAGS += -std=c99
endif
2011-09-27 20:25:35 +00:00
# APIVERSION is used to build SONAME
APIVERSION = 17
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
SRCS = $(wildcard $(SRCDIR)/*.c)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
LIBOBJS = $(addprefix $(BUILD)/,miniwget.o minixml.o igd_desc_parse.o minisoap.o \
2011-09-27 20:25:35 +00:00
miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o \
connecthostport.o portlistingparse.o receivedata.o upnpdev.o \
2021-08-11 14:53:35 +00:00
addr_is_reserved.o)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
BUILDINCLUDES = $(addprefix $(BUILD)/, miniupnpcstrings.h)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
OBJS = $(patsubst $(SRCDIR)/%.c,$(BUILD)/%.o,$(SRCS))
DEPS = $(patsubst $(SRCDIR)/%.c,$(BUILD)/%.d,$(SRCS))
2011-09-27 20:25:35 +00:00
# HEADERS to install
2021-08-11 14:53:35 +00:00
CPPFLAGS += -I$(INCDIR)
HEADERS = $(wildcard $(INCDIR)/*.h)
2011-09-27 20:25:35 +00:00
# library names
2021-08-11 14:53:35 +00:00
LIBRARY = $(BUILD)/libminiupnpc.a
ifneq (, $(findstring darwin, $(OS)))
2021-08-11 14:53:35 +00:00
SHAREDLIBRARY = $(BUILD)/libminiupnpc.dylib
SONAME = $(notdir $(basename $(SHAREDLIBRARY))).$(APIVERSION).dylib
CPPFLAGS += -D_DARWIN_C_SOURCE
else
ifeq ($(JARSUFFIX), win32)
2021-08-11 14:53:35 +00:00
SHAREDLIBRARY = $(BUILD)/miniupnpc.dll
2013-03-23 09:08:43 +00:00
else
# Linux/BSD/etc.
2021-08-11 14:53:35 +00:00
SHAREDLIBRARY = $(BUILD)/libminiupnpc.so
SONAME = $(notdir $(SHAREDLIBRARY)).$(APIVERSION)
2012-12-21 17:13:04 +00:00
endif
endif
2011-09-27 20:25:35 +00:00
2023-06-15 22:40:35 +00:00
EXECUTABLES = $(addprefix $(BUILD)/, upnpc-static upnp-listdevices-static)
2021-08-11 14:53:35 +00:00
EXECUTABLES_ADDTESTS = $(addprefix $(BUILD)/, testminixml minixmlvalid \
testupnpreplyparse testigddescparse testminiwget testportlistingparse)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
TESTMINIXMLOBJS = $(addprefix $(BUILD)/, minixml.o igd_desc_parse.o testminixml.o)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
TESTMINIWGETOBJS = $(addprefix $(BUILD)/, miniwget.o testminiwget.o connecthostport.o receivedata.o)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
TESTUPNPREPLYPARSE = $(addprefix $(BUILD)/, testupnpreplyparse.o minixml.o upnpreplyparse.o)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
TESTPORTLISTINGPARSE = $(addprefix $(BUILD)/, testportlistingparse.o minixml.o portlistingparse.o)
2014-11-01 10:18:26 +00:00
2021-08-11 14:53:35 +00:00
TESTADDR_IS_RESERVED = $(addprefix $(BUILD)/, testaddr_is_reserved.o addr_is_reserved.o)
2021-08-11 14:53:35 +00:00
TESTIGDDESCPARSE = $(addprefix $(BUILD)/, testigddescparse.o igd_desc_parse.o minixml.o \
2011-09-27 20:25:35 +00:00
miniupnpc.o miniwget.o upnpcommands.o upnpreplyparse.o \
minisoap.o connecthostport.o receivedata.o \
2021-08-11 14:53:35 +00:00
portlistingparse.o addr_is_reserved.o)
2011-09-27 20:25:35 +00:00
ifeq (, $(findstring amiga, $(OS)))
2021-08-11 14:53:35 +00:00
ifeq (, $(findstring mingw, $(OS))$(findstring cygwin, $(OS))$(findstring msys, $(OS)))
CFLAGS += -fPIC
endif
2023-06-15 22:40:35 +00:00
EXECUTABLES += $(BUILD)/upnpc-shared $(BUILD)/upnp-listdevices-shared
2021-08-11 14:53:35 +00:00
TESTMINIWGETOBJS += $(BUILD)/minissdpc.o
TESTIGDDESCPARSE += $(BUILD)/minissdpc.o
LIBOBJS += $(BUILD)/minissdpc.o
2011-09-27 20:25:35 +00:00
endif
2012-10-16 04:59:05 +00:00
LIBDIR ?= lib
2011-09-27 20:25:35 +00:00
# install directories
2016-09-03 07:34:15 +00:00
ifeq ($(strip $(PREFIX)),)
INSTALLPREFIX ?= /usr
else
INSTALLPREFIX ?= $(PREFIX)
endif
2011-09-27 20:25:35 +00:00
INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
2012-10-16 04:59:05 +00:00
INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR)
2011-09-27 20:25:35 +00:00
INSTALLDIRBIN = $(INSTALLPREFIX)/bin
INSTALLDIRMAN = $(INSTALLPREFIX)/share/man
PKGCONFIGDIR = $(INSTALLDIRLIB)/pkgconfig
2011-09-27 20:25:35 +00:00
FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
ifeq (, $(findstring amiga, $(OS)))
FILESTOINSTALL += $(SHAREDLIBRARY) $(BUILD)/miniupnpc.pc
2011-09-27 20:25:35 +00:00
endif
2012-04-06 14:08:43 +00:00
.PHONY: install clean depend all check test everything \
installpythonmodule updateversion
2011-09-27 20:25:35 +00:00
all: $(LIBRARY) $(EXECUTABLES)
2012-04-06 14:08:43 +00:00
test: check
2014-11-01 10:18:26 +00:00
check: validateminixml validateminiwget validateupnpreplyparse \
validateportlistingparse validateigddescparse validateaddr_is_reserved
2011-09-27 20:25:35 +00:00
everything: all $(EXECUTABLES_ADDTESTS)
2021-08-11 14:53:35 +00:00
pythonmodule: $(LIBRARY) $(SRCDIR)/miniupnpcmodule.c setup.py
MAKE=$(MAKE) python setup.py build
2011-09-27 20:25:35 +00:00
touch $@
installpythonmodule: pythonmodule
MAKE=$(MAKE) python setup.py install
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
pythonmodule3: $(LIBRARY) $(SRCDIR)/miniupnpcmodule.c setup.py
MAKE=$(MAKE) python3 setup.py build
2012-08-29 01:25:00 +00:00
touch $@
installpythonmodule3: pythonmodule3
MAKE=$(MAKE) python3 setup.py install
2012-08-29 01:25:00 +00:00
2021-08-11 14:53:35 +00:00
validateminixml: $(BUILD)/minixmlvalid
2011-09-27 20:25:35 +00:00
@echo "minixml validation test"
2021-08-11 14:53:35 +00:00
./$<
2011-09-27 20:25:35 +00:00
touch $@
2021-08-11 14:53:35 +00:00
validateminiwget: testminiwget.sh $(BUILD)/testminiwget $(BUILD)/minihttptestserver
2011-09-27 20:25:35 +00:00
@echo "miniwget validation test"
2021-08-11 14:53:35 +00:00
./$<
2011-09-27 20:25:35 +00:00
touch $@
2021-08-11 14:53:35 +00:00
validateupnpreplyparse: testupnpreplyparse.sh $(BUILD)/testupnpreplyparse
@echo "upnpreplyparse validation test"
2021-08-11 14:53:35 +00:00
./$<
touch $@
2021-08-11 14:53:35 +00:00
validateportlistingparse: $(BUILD)/testportlistingparse
2014-11-01 10:18:26 +00:00
@echo "portlistingparse validation test"
2021-08-11 14:53:35 +00:00
./$<
2014-11-01 10:18:26 +00:00
touch $@
2021-08-11 14:53:35 +00:00
validateigddescparse: $(BUILD)/testigddescparse
2014-11-17 19:31:11 +00:00
@echo "igd desc parse validation test"
2021-08-11 14:53:35 +00:00
./$< testdesc/new_LiveBox_desc.xml testdesc/new_LiveBox_desc.values
./$< testdesc/linksys_WAG200G_desc.xml testdesc/linksys_WAG200G_desc.values
2014-11-17 19:31:11 +00:00
touch $@
2021-08-11 14:53:35 +00:00
validateaddr_is_reserved: $(BUILD)/testaddr_is_reserved
@echo "addr_is_reserved() validation test"
2021-08-11 14:53:35 +00:00
./$<
touch $@
2011-09-27 20:25:35 +00:00
clean:
2021-08-11 14:53:35 +00:00
$(RM) $(LIBRARY) $(SHAREDLIBRARY) $(EXECUTABLES) $(OBJS) $(BUILDINCLUDES)
$(RM) $(EXECUTABLES_ADDTESTS)
2011-09-27 20:25:35 +00:00
# clean python stuff
2014-01-31 14:19:38 +00:00
$(RM) pythonmodule pythonmodule3
$(RM) validateminixml validateminiwget validateupnpreplyparse
2014-11-17 19:31:11 +00:00
$(RM) validateigddescparse
2014-11-01 10:40:15 +00:00
$(RM) minihttptestserver
$(RM) testaddr_is_reserved
2011-09-27 20:25:35 +00:00
$(RM) -r build/ dist/
#python setup.py clean
# clean jnaerator stuff
$(RM) _jnaerator.* java/miniupnpc_$(OS).jar
2011-09-27 20:25:35 +00:00
2013-01-09 20:06:28 +00:00
distclean: clean
$(RM) $(JNAERATOR) java/*.jar java/*.class out.errors.txt
updateversion: include/miniupnpc.h
cp $< $<.bak
sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\1$(APIVERSION)/' < $<.bak > $<
install: updateversion $(FILESTOINSTALL)
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)
$(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC)
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB)
$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)
ifeq (, $(findstring amiga, $(OS)))
$(INSTALL) -m 644 $(SHAREDLIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME)
ln -fs $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(notdir $(SHAREDLIBRARY))
$(INSTALL) -d $(DESTDIR)$(PKGCONFIGDIR)
$(INSTALL) -m 644 $(BUILD)/miniupnpc.pc $(DESTDIR)$(PKGCONFIGDIR)
2011-09-27 20:25:35 +00:00
endif
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN)
ifneq (, $(findstring amiga, $(OS)))
$(INSTALL) -m 755 $(BUILD)/upnpc-static $(DESTDIR)$(INSTALLDIRBIN)/upnpc
2023-06-15 22:40:35 +00:00
$(INSTALL) -m 755 $(BUILD)/upnp-listdevices-static $(DESTDIR)$(INSTALLDIRBIN)/upnp-listdevices
2011-09-27 20:25:35 +00:00
else
$(INSTALL) -m 755 $(BUILD)/upnpc-shared $(DESTDIR)$(INSTALLDIRBIN)/upnpc
2023-06-15 22:40:35 +00:00
$(INSTALL) -m 755 $(BUILD)/upnp-listdevices-shared $(DESTDIR)$(INSTALLDIRBIN)/upnp-listdevices
2011-09-27 20:25:35 +00:00
endif
$(INSTALL) -m 755 external-ip.sh $(DESTDIR)$(INSTALLDIRBIN)/external-ip
ifeq (, $(findstring amiga, $(OS)))
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRMAN)/man3
$(INSTALL) -m 644 man3/miniupnpc.3 $(DESTDIR)$(INSTALLDIRMAN)/man3/miniupnpc.3
ifneq (, $(findstring linux, $(OS)))
gzip -f $(DESTDIR)$(INSTALLDIRMAN)/man3/miniupnpc.3
endif
endif
install-static: updateversion $(FILESTOINSTALL)
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)
$(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC)
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB)
$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN)
$(INSTALL) -m 755 external-ip.sh $(DESTDIR)$(INSTALLDIRBIN)/external-ip
2011-09-27 20:25:35 +00:00
cleaninstall:
$(RM) -r $(DESTDIR)$(INSTALLDIRINC)
$(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(LIBRARY)
$(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIBRARY)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/miniupnpc.pc: VERSION
2021-08-12 21:41:35 +00:00
@$(MKDIR) $(@D)
$(RM) $@
echo "prefix=$(INSTALLPREFIX)" >> $@
echo "exec_prefix=\$${prefix}" >> $@
echo "libdir=\$${exec_prefix}/$(LIBDIR)" >> $@
echo "includedir=\$${prefix}/include" >> $@
echo "" >> $@
echo "Name: miniUPnPc" >> $@
echo "Description: UPnP IGD client lightweight library" >> $@
echo "URL: https://miniupnp.tuxfamily.org/" >> $@
echo "Version: $(VERSION)" >> $@
echo "Libs: -L\$${libdir} -lminiupnpc" >> $@
echo "Cflags: -I\$${includedir}" >> $@
2021-08-11 14:53:35 +00:00
depend: $(DEPS)
2011-09-27 20:25:35 +00:00
$(LIBRARY): $(LIBOBJS)
ifneq (, $(findstring darwin, $(OS)))
$(LIBTOOL) -static -o $@ $?
else
2011-09-27 20:25:35 +00:00
$(AR) crs $@ $?
endif
2011-09-27 20:25:35 +00:00
$(SHAREDLIBRARY): $(LIBOBJS)
ifneq (, $(findstring darwin, $(OS)))
# $(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(SONAME) -o $@ $^
$(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(INSTALLDIRLIB)/$(SONAME) -o $@ $^
2011-09-27 20:25:35 +00:00
else
$(CC) -shared $(LDFLAGS) -Wl,-soname,$(SONAME) -o $@ $^
endif
2021-08-11 14:53:35 +00:00
$(BUILD)/%.o: $(SRCDIR)/%.c $(BUILD)/%.d
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
$(DEPS): $(BUILDINCLUDES)
$(BUILD)/%.d: $(SRCDIR)/%.c
@$(MKDIR) $(@D)
$(CC) $(CPPFLAGS) $(DEPFLAGS) -MT $@ -o $@ $<
$(BUILD)/upnpc-static: $(BUILD)/upnpc.o $(LIBRARY)
$(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/upnpc-shared: $(BUILD)/upnpc.o $(SHAREDLIBRARY)
$(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)
2011-09-27 20:25:35 +00:00
2023-06-15 22:40:35 +00:00
$(BUILD)/upnp-listdevices-static: $(BUILD)/listdevices.o $(LIBRARY)
$(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)
$(BUILD)/upnp-listdevices-shared: $(BUILD)/listdevices.o $(SHAREDLIBRARY)
$(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)
2013-02-16 09:25:10 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/testminixml: $(TESTMINIXMLOBJS)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/testminiwget: $(TESTMINIWGETOBJS)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/minixmlvalid: $(addprefix $(BUILD)/, minixml.o minixmlvalid.o)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/testupnpreplyparse: $(TESTUPNPREPLYPARSE)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/testigddescparse: $(TESTIGDDESCPARSE)
2011-09-27 20:25:35 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/testportlistingparse: $(TESTPORTLISTINGPARSE)
2014-11-01 10:18:26 +00:00
2021-08-11 14:53:35 +00:00
$(BUILD)/testaddr_is_reserved: $(TESTADDR_IS_RESERVED)
2021-08-11 14:53:35 +00:00
$(BUILD)/miniupnpcstrings.h: miniupnpcstrings.h.in updateminiupnpcstrings.sh VERSION
2021-08-12 21:41:35 +00:00
@$(MKDIR) $(@D)
2021-08-11 14:53:35 +00:00
$(SH) updateminiupnpcstrings.sh $@ $<
2011-09-27 20:25:35 +00:00
2013-03-23 09:08:43 +00:00
# ftp tool supplied with OpenBSD can download files from http.
jnaerator-%.jar:
2013-03-23 09:08:43 +00:00
wget $(JNAERATORBASEURL)/$@ || \
curl -o $@ $(JNAERATORBASEURL)/$@ || \
ftp $(JNAERATORBASEURL)/$@
2012-01-18 17:03:52 +00:00
jar: $(SHAREDLIBRARY) $(JNAERATOR)
$(JAVA) -jar $(JNAERATOR) $(JNAERATORARGS) \
miniupnpc.h miniupnpc_declspec.h upnpcommands.h upnpreplyparse.h \
igd_desc_parse.h miniwget.h upnperrors.h $(SHAREDLIBRARY) \
2012-01-23 23:14:43 +00:00
-package fr.free.miniupnp -o . -jar java/miniupnpc_$(JARSUFFIX).jar -v
mvn_install:
mvn install:install-file -Dfile=java/miniupnpc_$(JARSUFFIX).jar \
-DgroupId=com.github \
-DartifactId=miniupnp \
-Dversion=$(VERSION) \
-Dpackaging=jar \
-Dclassifier=$(JARSUFFIX) \
-DgeneratePom=true \
-DcreateChecksum=true
2011-09-27 20:25:35 +00:00
2012-01-18 17:32:28 +00:00
# make .deb packages
2012-01-18 17:37:00 +00:00
deb: /usr/share/pyshared/stdeb all
(python setup.py --command-packages=stdeb.command bdist_deb)
2012-01-18 17:32:28 +00:00
# install .deb packages
ideb:
2012-01-18 17:37:00 +00:00
(sudo dpkg -i deb_dist/*.deb)
/usr/share/pyshared/stdeb: /usr/share/doc/python-all-dev
(sudo apt-get install python-stdeb)
/usr/share/doc/python-all-dev:
(sudo apt-get install python-all-dev)
2012-01-18 17:32:28 +00:00
2011-09-27 20:25:35 +00:00
minihttptestserver: minihttptestserver.o
2021-08-11 14:53:35 +00:00
print-%:
@echo "$* = $($*)"
ifneq ($(MAKECMDGOALS),clean)
-include $(DEPS)
endif