2016-07-01 11:24:17 +02:00
|
|
|
|
2016-09-16 13:37:11 +02:00
|
|
|
archive: $(INSTALL_DIR)$(ARCHIVE_EXT)
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR)$(ARCHIVE_EXT): $(LIB_DIR)$S$(LIB_PREFIX)ortools.$(LIB_SUFFIX) csharp java create_dirs cc_archive dotnet_archive java_archive $(PATCHELF)
|
2016-07-01 11:24:17 +02:00
|
|
|
ifeq "$(SYSTEM)" "win"
|
2016-07-18 15:25:55 -07:00
|
|
|
cd temp && ..$Stools$Szip.exe -r ..$S$(INSTALL_DIR).zip $(INSTALL_DIR)
|
2016-07-03 15:24:34 +02:00
|
|
|
else
|
2016-07-22 15:56:22 -07:00
|
|
|
ifeq ($(PLATFORM),LINUX)
|
|
|
|
|
tools/fix_libraries_on_linux.sh
|
2016-09-13 16:33:08 +02:00
|
|
|
else
|
|
|
|
|
$(COPY) tools/install_libortools_mac.sh temp/$(INSTALL_DIR)
|
|
|
|
|
chmod 775 temp/$(INSTALL_DIR)/install_libortools_mac.sh
|
|
|
|
|
cd temp/$(INSTALL_DIR) && ./install_libortools_mac.sh && rm install_libortools_mac.sh
|
2016-07-22 15:56:22 -07:00
|
|
|
endif
|
2016-07-18 15:25:55 -07:00
|
|
|
cd temp && tar -c -v -z --no-same-owner -f ..$S$(INSTALL_DIR).tar.gz $(INSTALL_DIR)
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
2016-07-01 15:29:57 +00:00
|
|
|
-$(DELREC) temp
|
2016-07-01 11:24:17 +02:00
|
|
|
|
|
|
|
|
create_dirs:
|
|
|
|
|
-$(DELREC) temp
|
|
|
|
|
$(MKDIR) temp
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sobjs
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sbin
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Salgorithms
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sbase
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sconstraint_solver
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sgflags
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sbop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sglop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sgoogle
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sgraph
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Slinear_solver
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Ssat
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sinclude$Sutil
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scpp
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scsharp
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution$SProperties
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle$Sortools
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle$Sortools$Ssamples
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Set_jobshop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sflexible_jobshop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sjobshop
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Smultidim_knapsack
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Scvrptw
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Spdptw
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sfill_a_pix
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sminesweeper
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Srogo
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Ssurvo_puzzle
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Squasigroup_completion
|
|
|
|
|
$(MKDIR) temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sdiscrete_tomography
|
|
|
|
|
|
2016-07-01 15:29:57 +00:00
|
|
|
#credits
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) LICENSE-2.0.txt temp$S$(INSTALL_DIR)
|
|
|
|
|
$(COPY) tools$SREADME.cc.java.csharp temp$S$(INSTALL_DIR)$SREADME
|
|
|
|
|
$(COPY) tools$SMakefile.cc temp$S$(INSTALL_DIR)$SMakefile
|
|
|
|
|
|
2016-11-02 19:12:40 +01:00
|
|
|
cc_archive: cc
|
2016-07-01 11:24:17 +02:00
|
|
|
|
2016-07-01 15:29:57 +00:00
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)cvrptw_lib.$(LIB_SUFFIX) temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)dimacs.$(LIB_SUFFIX) temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)ortools.$(LIB_SUFFIX) temp$S$(INSTALL_DIR)$Slib
|
2016-09-29 18:50:59 +02:00
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)fap.$(LIB_SUFFIX) temp$S$(INSTALL_DIR)$Slib
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scpp$S*.cc temp$S$(INSTALL_DIR)$Sexamples$Scpp
|
|
|
|
|
$(COPY) examples$Scpp$S*.h temp$S$(INSTALL_DIR)$Sexamples$Scpp
|
|
|
|
|
$(COPY) src$Salgorithms$S*.h temp$S$(INSTALL_DIR)$Sinclude$Salgorithms
|
|
|
|
|
$(COPY) src$Sbase$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sbase
|
|
|
|
|
$(COPY) src$Sconstraint_solver$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sconstraint_solver
|
|
|
|
|
$(COPY) src$Sgen$Sconstraint_solver$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sconstraint_solver
|
|
|
|
|
$(COPY) src$Sbop$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sbop
|
|
|
|
|
$(COPY) src$Sgen$Sbop$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sbop
|
|
|
|
|
$(COPY) src$Sglop$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sglop
|
|
|
|
|
$(COPY) src$Sgen$Sglop$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Sglop
|
|
|
|
|
$(COPY) src$Sgraph$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sgraph
|
2016-07-21 18:35:17 -07:00
|
|
|
$(COPY) src$Sgen$Sgraph$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sgraph
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) src$Slinear_solver$S*.h temp$S$(INSTALL_DIR)$Sinclude$Slinear_solver
|
|
|
|
|
$(COPY) src$Sgen$Slinear_solver$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Slinear_solver
|
|
|
|
|
$(COPY) src$Ssat$S*.h temp$S$(INSTALL_DIR)$Sinclude$Ssat
|
|
|
|
|
$(COPY) src$Sgen$Ssat$S*.pb.h temp$S$(INSTALL_DIR)$Sinclude$Ssat
|
|
|
|
|
$(COPY) src$Sutil$S*.h temp$S$(INSTALL_DIR)$Sinclude$Sutil
|
|
|
|
|
|
|
|
|
|
ifeq "$(SYSTEM)" "win"
|
|
|
|
|
cd temp$S$(INSTALL_DIR) && ..$S..$Stools$Star.exe -C ..$S.. -c -v --exclude *svn* --exclude *roadef* examples$Sdata | ..$S..$Stools$Star.exe xvm
|
|
|
|
|
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && ..$S..$S..$Stools$Star.exe -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v gflags | ..$S..$S..$Stools$Star.exe xvm
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && ..$S..$S..$Stools$Star.exe -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v google | ..$S..$S..$Stools$Star.exe xvm
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && ..$S..$S..$Stools$Star.exe -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v sparsehash | ..$S..$S..$Stools$Star.exe xvm
|
|
|
|
|
else
|
|
|
|
|
$(COPY) -R examples$Sdata$Set_jobshop$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Set_jobshop
|
|
|
|
|
$(COPY) -R examples$Sdata$Sflexible_jobshop$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sflexible_jobshop
|
|
|
|
|
$(COPY) -R examples$Sdata$Sjobshop$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sjobshop
|
|
|
|
|
$(COPY) -R examples$Sdata$Smultidim_knapsack$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Smultidim_knapsack
|
|
|
|
|
$(COPY) -R examples$Sdata$Scvrptw$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Scvrptw
|
|
|
|
|
$(COPY) -R examples$Sdata$Spdptw$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Spdptw
|
|
|
|
|
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && tar -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v gflags | tar xvm
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && tar -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v google | tar xvm
|
|
|
|
|
cd temp$S$(INSTALL_DIR)$Sinclude && tar -C ..$S..$S..$Sdependencies$Sinstall$Sinclude -c -v sparsehash | tar xvm
|
|
|
|
|
endif
|
|
|
|
|
|
2016-11-02 19:12:40 +01:00
|
|
|
dotnet_archive: csharp
|
2016-07-01 11:24:17 +02:00
|
|
|
|
2016-09-29 18:50:59 +02:00
|
|
|
$(COPY) bin$SGoogle.Protobuf.dll temp$S$(INSTALL_DIR)$Sbin
|
2017-04-21 16:41:23 +02:00
|
|
|
$(COPY) bin$S$(CLR_ORTOOLS_DLL_NAME).dll temp$S$(INSTALL_DIR)$Sbin
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scsharp$S*.cs temp$S$(INSTALL_DIR)$Sexamples$Scsharp
|
|
|
|
|
$(COPY) examples$Scsharp$Ssolution$SProperties$S*.cs temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution$SProperties
|
|
|
|
|
$(COPY) examples$Sdata$Sdiscrete_tomography$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sdiscrete_tomography
|
|
|
|
|
$(COPY) examples$Sdata$Sfill_a_pix$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sfill_a_pix
|
|
|
|
|
$(COPY) examples$Sdata$Sminesweeper$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sminesweeper
|
|
|
|
|
$(COPY) examples$Sdata$Srogo$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Srogo
|
|
|
|
|
$(COPY) examples$Sdata$Ssurvo_puzzle$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Ssurvo_puzzle
|
|
|
|
|
$(COPY) examples$Sdata$Squasigroup_completion$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Squasigroup_completion
|
|
|
|
|
|
|
|
|
|
ifeq "$(SYSTEM)" "win"
|
2016-12-12 14:36:04 +00:00
|
|
|
$(COPY) examples$Scsharp$SCsharp_examples.sln temp$S$(INSTALL_DIR)$Sexamples$Scsharp
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) examples$Scsharp$Ssolution$S*.csproj temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution
|
2016-12-12 14:03:13 +01:00
|
|
|
$(COPY) examples$Scsharp$Ssolution$Sapp.config temp$S$(INSTALL_DIR)$Sexamples$Scsharp$Ssolution
|
2016-07-01 11:24:17 +02:00
|
|
|
else
|
2017-04-21 16:41:23 +02:00
|
|
|
$(COPY) lib$Slib$(CLR_ORTOOLS_DLL_NAME).so temp$S$(INSTALL_DIR)$Sbin
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
|
|
|
|
|
2016-11-02 19:12:40 +01:00
|
|
|
java_archive: java
|
2016-07-01 11:24:17 +02:00
|
|
|
$(COPY) lib$S*.jar temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) lib$S$(LIB_PREFIX)jni*.$(JNI_LIB_EXT) temp$S$(INSTALL_DIR)$Slib
|
|
|
|
|
|
|
|
|
|
$(COPY) examples$Sdata$Sdiscrete_tomography$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sdiscrete_tomography
|
|
|
|
|
$(COPY) examples$Sdata$Sfill_a_pix$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sfill_a_pix
|
|
|
|
|
$(COPY) examples$Sdata$Sminesweeper$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Sminesweeper
|
|
|
|
|
$(COPY) examples$Sdata$Srogo$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Srogo
|
|
|
|
|
$(COPY) examples$Sdata$Ssurvo_puzzle$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Ssurvo_puzzle
|
|
|
|
|
$(COPY) examples$Sdata$Squasigroup_completion$S* temp$S$(INSTALL_DIR)$Sexamples$Sdata$Squasigroup_completion
|
|
|
|
|
$(COPY) examples$Scom$Sgoogle$Sortools$Ssamples$S*.java temp$S$(INSTALL_DIR)$Sexamples$Scom$Sgoogle$Sortools$Ssamples
|
2016-07-03 15:24:34 +02:00
|
|
|
|
2017-01-25 20:29:08 +00:00
|
|
|
TEMP_FZ_DIR = temp_fz
|
2016-11-04 10:43:50 +00:00
|
|
|
fz_archive: cc fz
|
2017-01-25 20:29:08 +00:00
|
|
|
-$(DELREC) $(TEMP_FZ_DIR)
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sbin
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Slib
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_cp
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_sat
|
|
|
|
|
mkdir $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sexamples
|
|
|
|
|
$(COPY) LICENSE-2.0.txt $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)
|
|
|
|
|
$(COPY) bin$Sfz$E $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sbin$Sfzn-or-tools$E
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)ortools.$(LIB_SUFFIX) $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) $(LIB_DIR)$S$(LIB_PREFIX)fz.$(LIB_SUFFIX) $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Slib
|
|
|
|
|
$(COPY) src$Sflatzinc$Smznlib_cp$S* $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_cp
|
|
|
|
|
$(COPY) src$Sflatzinc$Smznlib_sat$S* $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sshare$Sminizinc_sat
|
|
|
|
|
$(COPY) examples$Sflatzinc$S* $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sexamples
|
2016-11-04 10:43:50 +00:00
|
|
|
ifeq "$(SYSTEM)" "win"
|
2017-01-25 20:29:08 +00:00
|
|
|
cd $(TEMP_FZ_DIR) && ..$Stools$Szip.exe -r ..$S$(FZ_INSTALL_DIR).zip $(FZ_INSTALL_DIR)
|
2016-11-04 10:43:50 +00:00
|
|
|
else
|
2016-08-19 15:23:27 +02:00
|
|
|
ifeq ($(PLATFORM),LINUX)
|
2017-01-25 20:29:08 +00:00
|
|
|
$(DEP_BIN_DIR)$Spatchelf --set-rpath '$$ORIGIN/../lib' $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sbin$Sfzn-or-tools
|
2016-08-19 15:23:27 +02:00
|
|
|
endif
|
2016-08-19 14:24:11 +02:00
|
|
|
ifeq ($(PLATFORM),MACOSX)
|
2017-01-25 20:29:08 +00:00
|
|
|
$(COPY) tools$Sfix_fz_libraries_on_mac.sh $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)
|
|
|
|
|
chmod u+x $(TEMP_FZ_DIR)/$(FZ_INSTALL_DIR)$Sfix_fz_libraries_on_mac.sh
|
|
|
|
|
cd $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR) && .$Sfix_fz_libraries_on_mac.sh
|
|
|
|
|
$(RM) $(TEMP_FZ_DIR)$S$(FZ_INSTALL_DIR)$Sfix_fz_libraries_on_mac.sh
|
2016-08-19 14:24:11 +02:00
|
|
|
endif
|
2017-01-25 20:29:08 +00:00
|
|
|
cd $(TEMP_FZ_DIR) && tar cvzf ..$S$(FZ_INSTALL_DIR).tar.gz $(FZ_INSTALL_DIR)
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
2017-01-25 20:29:08 +00:00
|
|
|
-$(DELREC) $(TEMP_FZ_DIR)
|
2016-07-22 17:43:37 +02:00
|
|
|
|
|
|
|
|
|
2016-07-25 18:37:18 +02:00
|
|
|
test_archive: $(INSTALL_DIR)$(ARCHIVE_EXT)
|
2016-07-22 17:43:37 +02:00
|
|
|
-$(DELREC) temp
|
|
|
|
|
$(MKDIR) temp
|
2016-07-25 17:47:20 +02:00
|
|
|
#this is to make sure the archive tests don't use the root libraries
|
|
|
|
|
$(RENAME) lib lib2
|
2016-07-22 17:43:37 +02:00
|
|
|
ifeq "$(SYSTEM)" "win"
|
2016-07-22 20:43:23 +02:00
|
|
|
tools$Sunzip.exe $(INSTALL_DIR).zip -d temp
|
2016-07-22 17:43:37 +02:00
|
|
|
else
|
|
|
|
|
tar -x -v -f $(INSTALL_DIR).tar.gz -C temp
|
|
|
|
|
endif
|
2016-09-16 13:37:11 +02:00
|
|
|
cd temp$S$(INSTALL_DIR) && $(MAKE) test && cd ../.. && $(RENAME) lib2 lib && echo "archive test succeeded" || ( cd ../.. && $(RENAME) lib2 lib && echo "archive test failed" && exit 1)
|
2016-08-19 14:24:11 +02:00
|
|
|
|
2017-01-25 20:29:08 +00:00
|
|
|
TEMP_FZ_TEST_DIR = temp_test_fz
|
2016-08-19 14:24:11 +02:00
|
|
|
test_fz_archive: $(FZ_INSTALL_DIR)$(ARCHIVE_EXT)
|
2017-01-25 20:29:08 +00:00
|
|
|
-$(DELREC) $(TEMP_FZ_TEST_DIR)
|
|
|
|
|
$(MKDIR) $(TEMP_FZ_TEST_DIR)
|
2016-08-19 14:24:11 +02:00
|
|
|
#this is to make sure the archive tests don't use the root libraries
|
|
|
|
|
$(RENAME) lib lib2
|
|
|
|
|
ifeq "$(SYSTEM)" "win"
|
2017-01-25 20:29:08 +00:00
|
|
|
tools$Sunzip.exe $(FZ_INSTALL_DIR).zip -d $(TEMP_FZ_TEST_DIR)
|
2016-08-19 14:24:11 +02:00
|
|
|
else
|
2017-01-25 20:29:08 +00:00
|
|
|
tar -x -v -f $(FZ_INSTALL_DIR).tar.gz -C $(TEMP_FZ_TEST_DIR)
|
2016-08-19 14:24:11 +02:00
|
|
|
endif
|
2017-01-25 20:29:08 +00:00
|
|
|
cd $(TEMP_FZ_TEST_DIR)$S$(FZ_INSTALL_DIR) && .$Sbin$S$(FZ_EXE) examples$Scircuit_test.fzn && cd ../.. && $(RENAME) lib2 lib && echo "fz archive test succeeded" || ( cd ../.. && $(RENAME) lib2 lib && echo "fz archive test failed" && exit 1)
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq "$(PYTHON3)" "true"
|
|
|
|
|
build_release: clean python test_python
|
|
|
|
|
pre_release: pypi_archive
|
2016-09-20 15:54:58 +02:00
|
|
|
release: pypi_upload
|
2016-09-16 13:37:11 +02:00
|
|
|
else #platform check
|
|
|
|
|
|
|
|
|
|
ifeq "$(SYSTEM)" "win"
|
|
|
|
|
|
|
|
|
|
ifeq "$(VISUAL_STUDIO_YEAR)" "2013"
|
|
|
|
|
build_release: clean all test
|
|
|
|
|
pre_release: archive test_archive
|
|
|
|
|
release:
|
2016-09-16 14:37:25 +00:00
|
|
|
else
|
|
|
|
|
ifeq "$(VISUAL_STUDIO_YEAR)" "2015"
|
2016-09-16 13:37:11 +02:00
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive python_examples_archive pypi_archive
|
2016-09-16 14:56:21 +02:00
|
|
|
release: pypi_upload nuget_upload
|
2016-09-16 14:37:25 +00:00
|
|
|
endif #ifeq "$(VISUAL_STUDIO_YEAR)" "2015"
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
endif # ifeq"$(VISUAL_STUDIO_YEAR)" "2013"
|
2016-09-16 14:37:25 +00:00
|
|
|
|
2016-09-16 13:37:11 +02:00
|
|
|
else # unix
|
|
|
|
|
|
|
|
|
|
ifeq "$(PLATFORM)" "LINUX"
|
|
|
|
|
ifeq "$(DISTRIBUTION_NUMBER)" "14.04"
|
|
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive python_examples_archive pypi_archive
|
|
|
|
|
release: pypi_upload
|
2017-04-21 16:41:23 +02:00
|
|
|
else
|
2016-11-04 03:52:04 -07:00
|
|
|
ifeq "$(DISTRIBUTION_NUMBER)" "16.04"
|
2016-09-20 15:54:58 +02:00
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive
|
2016-09-16 13:37:11 +02:00
|
|
|
release:
|
2016-09-16 14:37:25 +00:00
|
|
|
endif # ifeq "$(DISTRIBUTION_NUMBER)" "16.04"
|
|
|
|
|
endif # ifeq "$(DISTRIBUTION_NUMBER)" "14.04"
|
|
|
|
|
endif # ifeq "$(PLATFORM)" "LINUX"
|
2016-09-16 13:37:11 +02:00
|
|
|
|
|
|
|
|
ifeq "$(PLATFORM)" "MACOSX"
|
|
|
|
|
build_release: clean all test fz
|
|
|
|
|
pre_release: archive test_archive fz_archive test_fz_archive pypi_archive
|
|
|
|
|
release: pypi_upload
|
|
|
|
|
endif #ifeq "$(PLATFORM)" "MACOSX"
|
|
|
|
|
|
|
|
|
|
endif #ifeq "$(SYSTEM)" "win"
|
2017-04-21 16:41:23 +02:00
|
|
|
endif #ifeq "$(PYTHON3)" "true"
|