diff --git a/miniupnpc/.gitignore b/miniupnpc/.gitignore index f0340b3..fdf6d59 100644 --- a/miniupnpc/.gitignore +++ b/miniupnpc/.gitignore @@ -1,3 +1,4 @@ +deb_dist/ build/ *.o *.a diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index 27e8303..15603d1 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -204,6 +204,20 @@ jnaerator-0.9.3.jar: jar: $(SHAREDLIBRARY) $(JNAERATOR) $(JAVA) -jar $(JNAERATOR) -library miniupnpc miniupnpc.h declspec.h upnpcommands.h upnpreplyparse.h igd_desc_parse.h miniwget.h upnperrors.h $(SHAREDLIBRARY) -package fr.free.miniupnp -o . -jar java/miniupnpc_$(OS).jar -v +# make .deb packages +deb: /usr/share/pyshared/stdeb all + (python setup.py --command-packages=stdeb.command bdist_deb) + +# install .deb packages +ideb: + (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) + minihttptestserver: minihttptestserver.o # DO NOT DELETE THIS LINE -- make depend depends on it.