mirror of https://github.com/fredrikekre/HYPRE.jl
Julia interface to hypre linear solvers (https://github.com/hypre-space/hypre)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
558 B
14 lines
558 B
MAKEDIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) |
|
LIBHYPRE:=$(shell dirname $(MAKEDIR))/lib/LibHYPRE.jl |
|
|
|
generate: $(LIBHYPRE) |
|
|
|
clean: |
|
rm -f $(LIBHYPRE) |
|
|
|
.PHONY: generate clean |
|
|
|
$(LIBHYPRE): Project.toml Manifest.toml $(MAKEDIR)/generator.toml $(MAKEDIR)/generator.jl |
|
julia --project generator.jl && \ |
|
julia-1.11 --project=@runic -e 'using Runic; exit(Runic.main(ARGS))' -- -i $(LIBHYPRE) |
|
sed -i -e '1s/^/local libHYPRE # Silence of the Langs(erver)\n\n/' -e 's/using HYPRE_jll/using HYPRE_jll: HYPRE_jll, libHYPRE/' $(LIBHYPRE) && \
|
|
|