mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment
|
|
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved.
|
|
# Released under the modified BSD license. See COPYING.md for more details.
|
|
|
|
JULIA := julia --color=yes --project=@.
|
|
VERSION := 0.2
|
|
|
|
build/sysimage.so: src/utils/sysimage.jl Project.toml Manifest.toml
|
|
mkdir -p build
|
|
mkdir -p benchmark/results/test
|
|
cd benchmark; $(JULIA) --trace-compile=../build/precompile.jl benchmark.jl test/case14
|
|
$(JULIA) src/utils/sysimage.jl
|
|
|
|
clean:
|
|
rm -rf build/*
|
|
|
|
docs:
|
|
cd docs; make clean; make dirhtml
|
|
rsync -avP --delete-after docs/_build/dirhtml/ ../docs/$(VERSION)/
|
|
|
|
test: build/sysimage.so
|
|
@echo Running tests...
|
|
$(JULIA) --sysimage build/sysimage.so -e 'using Pkg; Pkg.test("UnitCommitment")' | tee build/test.log
|
|
|
|
|
|
format:
|
|
julia -e 'using JuliaFormatter; format("src"); format("test"); format("benchmark")'
|
|
|
|
install-deps:
|
|
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.14.4"))'
|
|
|
|
.PHONY: docs test format install-deps
|