Commit 5bf49ade authored by Hannes Sommer's avatar Hannes Sommer
Browse files

add native files to the release .zip - file

git-svn-id: f5b180c5-49ee-4939-b20e-b6ed35f0f7b7
parent 347d7383
......@@ -26,7 +26,9 @@
#directory for the dependencies
#a place to put the archives that constitute a release, before copy to
#web site
......@@ -67,6 +69,14 @@ JTEMURL=
.PHONY: .native
for i in linux64 win32 win64 ; do mkdir -p $(NATIVEDIR)/$$i; done
ln -nfs ../../windows-VS/Win32/Release/jopenhaptics.dll $(NATIVEDIR)/win32
ln -nfs ../../windows-VS/x64/Release/jopenhaptics.dll $(NATIVEDIR)/win64
cd $(NATIVEDIR)/linux64; jar xf ../../build/joh/joh-natives-linux-amd64.jar
# ---------------------------------------------------------------------
# Everything below should be generic (feel free to adapt to your needs)
# ---------------------------------------------------------------------
......@@ -268,10 +278,11 @@ $(RELDIR)/$(NAME).tgz: $(shell find $(SRCDIRS)) | updatedeps
@tar czf $(RELDIR)/$(NAME).tgz $(SRCDIRS) $(LIBDIR) --exclude-vcs --exclude "\.*"
#jar and jars of all dependencies
$(RELDIR)/$(NAME).zip: $(RELDIR)/$(NAME).jar | updatedeps
$(RELDIR)/$(NAME).zip: $(RELDIR)/$(NAME).jar .native | updatedeps
@if [ ! -d $(RELDIR) ]; then mkdir $(RELDIR); fi
@cd $(RELDIR); zip $(NAME).zip $(NAME).jar
@if [ $(LIBDIR) != "" -a -d $(LIBDIR) ]; then cd $(LIBDIR); zip -g ../$(RELDIR)/$(NAME).zip *.jar *license* *License* *LICENSE* >> /dev/null; fi
@if [ "$(LIBDIR)" != "" -a -d "$(LIBDIR)" ]; then cd $(LIBDIR); zip -g ../$(RELDIR)/$(NAME).zip *.jar *license* *License* *LICENSE* >> /dev/null; fi
@if [ "$(NATIVEDIR)" != "" -a -d "$(NATIVEDIR)" ]; then zip -rg $(RELDIR)/$(NAME).zip $(NATIVEDIR) >> /dev/null; fi
#archive of api-documentation
$(RELDIR)/$(NAME)-api.tgz: $(DOCDIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment