This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add Makefile for building and distributing tetgen
- Added a Makefile to build and distribute the tetgen library. - The Makefile includes targets for cleaning, extracting source files, building the library, and creating a distribution package. - The Makefile also handles different operating systems and architectures for compatibility. - The Makefile downloads the necessary source files for building the tetgen library from the specified URL. - The Makefile simplifies the build and distribution process for the tetgen library.
- Loading branch information
Showing
5 changed files
with
50 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"words": ["bidi", "choco", "commitizen", "coreutils", "liblaf"], | ||
"ignorePaths": [".cspell.json", "*-lock.*", "*.lock"], | ||
"allowCompoundWords": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
NAME := tetgen | ||
SRC_DIR := tetgen1.6.0 | ||
|
||
RUNNER_OS ?= $(shell uname -s) | ||
RUNNER_ARCH ?= $(shell uname -m) | ||
|
||
override RUNNER_OS != echo "$(RUNNER_OS)" | tr '[:upper:]' '[:lower:]' | ||
override RUNNER_ARCH != echo "$(RUNNER_ARCH)" | tr '[:upper:]' '[:lower:]' | ||
|
||
EXE := $(if $(filter windows,$(RUNNER_OS)),.exe,) | ||
|
||
default: $(SRC_DIR)/$(NAME)$(EXE) | ||
|
||
clean: | ||
git clean -d --force -X | ||
|
||
dist: dist/$(NAME)-$(RUNNER_OS)-$(RUNNER_ARCH)$(EXE) | ||
|
||
##################### | ||
# Auxiliary Targets # | ||
##################### | ||
|
||
$(SRC_DIR): tetgen1.6.0.tar.gz | ||
tar --extract --file="$<" --gzip --verbose | ||
|
||
.PHONY: $(SRC_DIR)/$(NAME)$(EXE) | ||
$(SRC_DIR)/$(NAME)$(EXE): $(SRC_DIR) | ||
$(MAKE) --directory="$<" | ||
|
||
dist/$(NAME)-$(RUNNER_OS)-$(RUNNER_ARCH)$(EXE): $(SRC_DIR)/$(NAME)$(EXE) | ||
@ install -D --no-target-directory --verbose "$<" "$@" | ||
|
||
tetgen1.6.0.tar.gz: | ||
wget --output-document="$@" "https://wias-berlin.de/software/tetgen/1.5/src/tetgen1.6.0.tar.gz" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.