A code formatter for Julia with rules set in stone.
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.
 
 
 

18 lines
517 B

JULIA ?= /opt/julia/julia-c/bin/julia
JULIAC ?= $(shell $(JULIA) -e 'print(normpath(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "juliac.jl")))')
RUNIC_FILES := $(wildcard ../src/*.jl) ../Project.toml
runicc: runicc.jl Project.toml Manifest.toml $(RUNIC_FILES)
$(JULIA) --project=. $(JULIAC) --output-exe $@ --trim=unsafe-warn $<
Manifest.toml: Project.toml ../Project.toml
$(JULIA) --project=. -e 'using Pkg; Pkg.instantiate()'
clean:
-rm -f runicc Manifest.toml
print-%:
@echo '$*=$($*)'
.PHONY: clean