-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
79 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
;;; Directory Local Variables -*- no-byte-compile: t -*- | ||
;;; For more information see (info "(emacs) Directory Variables") | ||
|
||
(("nil-mode" . ((compile-command . "make -f el.make")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: make all | ||
run: make -f el.make all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
*.elc | ||
/org-journal-autoloads.el | ||
*-autoloads.el |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
## | ||
# this file is part of el.make | ||
# | ||
# copyright: 2024- christian schwarzgruber ([email protected]) | ||
# | ||
# version: 0.1.0 | ||
# | ||
# source: https://github.com/casch-at/el.make | ||
# | ||
# | ||
## | ||
#### | ||
## | ||
# el.make is free software: you can redistribute it and/or modify it | ||
# under the terms of the gnu general public license as published by the free | ||
# software foundation, either version 3 of the license, or | ||
# (at your option) any later version. | ||
# | ||
# el.make is distributed in the hope that it will be useful, | ||
# but without any warranty; without even the implied warranty of | ||
# merchantability or fitness for a particular purpose. see the | ||
# gnu general public license for more details. | ||
# | ||
# you should have received a copy of the gnu general public license along | ||
# with el.make. if not, see <http://www.gnu.org/licenses/>. | ||
## | ||
#### | ||
## | ||
# hier koennte ihre werbung stehen | ||
# | ||
# el.make | ||
# | ||
# an emacs lisp `make` file | ||
## | ||
|
||
# todo(cschwarzgruber): hmm? | ||
export LC_ALL = C | ||
|
||
emacs = emacs | ||
flags = -Q --batch --no-site-file | ||
batch = $(emacs) $(flags) | ||
|
||
## test directory | ||
test-d = tests | ||
|
||
## source directory | ||
src-d = src | ||
|
||
## all source files | ||
el-f = $(wildcard $(src-d)/*.el) | ||
|
||
## all test files | ||
test-f = $(wildcard $(test-d)/*.el) | ||
|
||
## all compiled files | ||
elc-f = $(addprefix $(src-d)/, $(notdir $(el-f:.el=.elc))) | ||
|
||
.phony: all compile test clean | ||
|
||
all: compile test | ||
|
||
compile: $(elc-f) | ||
|
||
test: $(elc-f) | ||
@echo "running tests... " | ||
@$(batch) -L $(src-d) -l $(test-f) -f ert-run-tests-batch-and-exit | ||
|
||
$(src-d)/%.elc: $(src-d)/%.el | ||
@echo "compiling $<..." | ||
@$(batch) -f batch-byte-compile $< | ||
|
||
clean: | ||
rm -f $(elc-f) |
File renamed without changes.