add mvn_install command

This commit is contained in:
Alexey Kuznetsov 2012-01-24 03:14:43 +04:00
parent d24eaf9158
commit db7a700a4a
1 changed files with 18 additions and 1 deletions

View File

@ -9,6 +9,11 @@
# or # or
# make install (will go to /usr/bin, /usr/lib, etc...) # make install (will go to /usr/bin, /usr/lib, etc...)
OS = $(shell uname -s) OS = $(shell uname -s)
ifeq ($(OS), Darwin)
JARSUFFIX=mac
endif
CC ?= gcc CC ?= gcc
#AR = gar #AR = gar
#CFLAGS = -O -Wall -g -DDEBUG #CFLAGS = -O -Wall -g -DDEBUG
@ -202,7 +207,19 @@ jnaerator-0.9.3.jar:
wget http://jnaerator.googlecode.com/files/jnaerator-0.9.3.jar wget http://jnaerator.googlecode.com/files/jnaerator-0.9.3.jar
jar: $(SHAREDLIBRARY) $(JNAERATOR) 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 $(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_$(JARSUFFIX).jar -v
mvn_install:
mvn install:install-file -Dfile=java/miniupnpc_$(JARSUFFIX).jar \
-DgroupId=com.github \
-DartifactId=miniupnp \
-Dversion=1.7-SNAPSHOT \
-Dpackaging=jar \
-Dclassifier=$(JARSUFFIX) \
-DgeneratePom=true \
-DcreateChecksum=true
# make .deb packages # make .deb packages
deb: /usr/share/pyshared/stdeb all deb: /usr/share/pyshared/stdeb all