2025-01-10 11:35:44 +01:00
|
|
|
# Copyright 2010-2025 Google LLC
|
2022-06-20 18:27:09 +02:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
2018-07-05 14:56:31 +02:00
|
|
|
# ---------- Archive support ----------
|
|
|
|
|
.PHONY: help_archive # Generate list of Archive targets with descriptions.
|
|
|
|
|
help_archive:
|
|
|
|
|
@echo Use one of the following Archive targets:
|
2022-03-07 14:05:12 +01:00
|
|
|
ifeq ($(PLATFORM),WIN64)
|
2018-07-05 14:56:31 +02:00
|
|
|
@$(GREP) "^.PHONY: .* #" $(CURDIR)/makefiles/Makefile.archive.mk | $(SED) "s/\.PHONY: \(.*\) # \(.*\)/\1\t\2/"
|
|
|
|
|
@echo off & echo(
|
2016-07-03 15:24:34 +02:00
|
|
|
else
|
2018-07-05 14:56:31 +02:00
|
|
|
@$(GREP) "^.PHONY: .* #" $(CURDIR)/makefiles/Makefile.archive.mk | $(SED) "s/\.PHONY: \(.*\) # \(.*\)/\1\t\2/" | expand -t20
|
|
|
|
|
@echo
|
2016-07-01 11:24:17 +02:00
|
|
|
endif
|
|
|
|
|
|
2018-07-05 14:56:31 +02:00
|
|
|
# Main target
|
2016-07-22 17:43:37 +02:00
|
|
|
|
2022-03-28 18:29:33 +02:00
|
|
|
################
|
|
|
|
|
## Cleaning ##
|
|
|
|
|
################
|
|
|
|
|
.PHONY: clean_archive # Clean Archive output from previous build.
|
|
|
|
|
clean_archive:
|
2022-06-13 18:19:55 +02:00
|
|
|
-$(DELREC) $(INSTALL_CPP_NAME)
|
|
|
|
|
-$(DELREC) $(INSTALL_CPP_NAME)$(ARCHIVE_EXT)
|
|
|
|
|
-$(DELREC) $(INSTALL_DOTNET_NAME)
|
|
|
|
|
-$(DELREC) $(INSTALL_DOTNET_NAME)$(ARCHIVE_EXT)
|
|
|
|
|
-$(DELREC) $(INSTALL_JAVA_NAME)
|
|
|
|
|
-$(DELREC) $(INSTALL_JAVA_NAME)$(ARCHIVE_EXT)
|
|
|
|
|
-$(DELREC) $(INSTALL_PYTHON_NAME)
|
|
|
|
|
-$(DELREC) $(INSTALL_PYTHON_NAME)$(ARCHIVE_EXT)
|
2018-07-05 14:56:31 +02:00
|
|
|
|
2022-03-28 18:29:33 +02:00
|
|
|
#############
|
|
|
|
|
## DEBUG ##
|
|
|
|
|
#############
|
2018-07-05 14:56:31 +02:00
|
|
|
.PHONY: detect_archive # Show variables used to build archive OR-Tools.
|
|
|
|
|
detect_archive:
|
|
|
|
|
@echo Relevant info for the archive build:
|
|
|
|
|
@echo ARCHIVE_EXT = $(ARCHIVE_EXT)
|
2022-03-07 14:05:12 +01:00
|
|
|
ifeq ($(PLATFORM),WIN64)
|
2018-07-05 14:56:31 +02:00
|
|
|
@echo off & echo(
|
2016-09-16 14:37:25 +00:00
|
|
|
else
|
2018-07-05 14:56:31 +02:00
|
|
|
@echo
|
|
|
|
|
endif
|