1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- SHELL = bash -Eeuxo pipefail
- .DEFAULT_GOAL := run
- GUILE_LOAD_PATH_ADDITIONS := .
- GUILE_LOAD_PATH_ADDITIONS += lib
- GUILE_LOAD_PATH_ADDITIONS += lib/algorithms
- GUILE_LOAD_PATH_ADDITIONS += lib/pfds-addons
- GUILE_LOAD_PATH_ADDITIONS += lib/graph
- # GUILE_LOAD_PATH_ADDITIONS += lib/contracts
- GUILE_LOAD_PATH_ARGUMENTS := $(foreach dir,$(GUILE_LOAD_PATH_ADDITIONS),-L $(dir))
- # Get the project directory somehow.
- # PROJECT_DIR := "$(shell pwd)"
- mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
- PROJECT_DIR := $(patsubst %/,%,$(dir $(mkfile_path)))
- .PHONY: rebuild
- rebuild:
- guix time-machine \
- --channels="$(PROJECT_DIR)/guix-env/channels.scm" -- \
- shell \
- --development \
- --manifest="$(PROJECT_DIR)/guix-env/manifest.scm" -- \
- guile \
- --fresh-auto-compile \
- $(GUILE_LOAD_PATH_ARGUMENTS) \
- main.scm
- .PHONY: run-a-star
- run-a-star:
- guix time-machine \
- --channels="$(PROJECT_DIR)/guix-env/channels.scm" -- \
- shell \
- --development \
- --manifest="$(PROJECT_DIR)/guix-env/manifest.scm" -- \
- guile \
- $(GUILE_LOAD_PATH_ARGUMENTS) \
- main-a-star.scm
- .PHONY: run-dijkstra
- run-dijkstra:
- guix time-machine \
- --channels="$(PROJECT_DIR)/guix-env/channels.scm" -- \
- shell \
- --development \
- --manifest="$(PROJECT_DIR)/guix-env/manifest.scm" -- \
- guile \
- $(GUILE_LOAD_PATH_ARGUMENTS) \
- main-dijkstra.scm
- .PHONY: test-shell
- test-shell:
- exec guix time-machine \
- --channels="$(PROJECT_DIR)/guix-env/channels.scm" -- \
- shell \
- --development \
- --manifest="$(PROJECT_DIR)/guix-env/manifest.scm" -- \
- guile \
- $(GUILE_LOAD_PATH_ARGUMENTS)
|