aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-12-10 15:08:15 -0500
committerKyle Meyer <kyle@kyleam.com>2023-12-10 15:08:15 -0500
commitc6b6d485bc77d2dc17982b16dcb54f1c8b2025e6 (patch)
tree208618f8361840bc0a515ece7f47402560a5ed58
parent4816da4c1604aa2030b21ed53326247b524e42b2 (diff)
downloadsnakemake-mode-c6b6d485bc77d2dc17982b16dcb54f1c8b2025e6.tar.gz
make: Require Transient/Compat paths to be explicitly set
Don't assume that the top-level of the Transient and Compat repos reside in the same directory as this repo.
-rw-r--r--.github/workflows/test.yml4
-rw-r--r--.gitignore1
-rw-r--r--Makefile7
3 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0ae8a9f..ea27c1f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -43,6 +43,10 @@ jobs:
run: make -C compat compile
- name: Build transient
run: make -C transient lisp
+ - name: Set envvars for dependencies
+ run: |
+ echo "COMPAT_DIR=$PWD/compat" >>$GITHUB_ENV
+ echo "TRANSIENT_DIR=$PWD/transient/lisp" >>$GITHUB_ENV
- name: Build snakemake-mode
run: make -C snakemake-mode all
- name: Test snakemake-mode
diff --git a/.gitignore b/.gitignore
index 1a0a7fc..c1adfcd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*-autoloads.el
*.elc
/.deps
+/config.mk
diff --git a/Makefile b/Makefile
index c431b7d..3f8ed24 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
-LOAD_PATH = -L ../compat -L ../transient/lisp -L .
+-include config.mk
+
+COMPAT_DIR ?= /dev/null
+TRANSIENT_DIR ?= /dev/null
+
+LOAD_PATH = -L $(COMPAT_DIR) -L $(TRANSIENT_DIR) -L .
EMACS = emacs
BATCH = $(EMACS) -Q --batch $(LOAD_PATH)