-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename org-journal.svg -> logo.svg and update title
- Loading branch information
Showing
4 changed files
with
52 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,9 +1,10 @@ | ||
## | ||
# this file is part of el.make | ||
## | ||
# | ||
# copyright: 2024- christian schwarzgruber ([email protected]) | ||
# | ||
# version: 0.1.0 | ||
# version: 0.2.0 | ||
# | ||
# source: https://github.com/casch-at/el.make | ||
# | ||
|
@@ -30,44 +31,42 @@ | |
# | ||
# el.make | ||
# | ||
# an emacs lisp `make` file | ||
# an emacs¹ lisp `make` file | ||
## | ||
# ¹) Emacs -- also known for being a "Text Editor" | ||
## | ||
|
||
# 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 | ||
# quiet mode | ||
q = @ | ||
log = $(q)echo | ||
|
||
## all source files | ||
el-f = $(wildcard $(src-d)/*.el) | ||
emacs = emacs | ||
batch = $(q)$(emacs) -Q --batch --no-site-file | ||
|
||
## all test files | ||
test-f = $(wildcard $(test-d)/*.el) | ||
src = src | ||
src-el = $(wildcard $(src)/*.el) | ||
src-elc = $(addprefix $(src)/, $(notdir $(src-el:.el=.elc))) | ||
|
||
## all compiled files | ||
elc-f = $(addprefix $(src-d)/, $(notdir $(el-f:.el=.elc))) | ||
tests = tests | ||
tests-el = $(wildcard $(tests)/*.el) | ||
|
||
.phony: all compile test clean | ||
# .elc pattern rule | ||
$(src)/%.elc: $(src)/%.el | ||
$(log) "\nbyte-compiling... \n $<" | ||
$(batch) -f batch-byte-compile $< | ||
|
||
all: compile test | ||
.phony: all byte-compile test clean | ||
|
||
compile: $(elc-f) | ||
all: byte-compile test | ||
|
||
test: $(elc-f) | ||
@echo "running tests... " | ||
@$(batch) -L $(src-d) -l $(test-f) -f ert-run-tests-batch-and-exit | ||
byte-compile: $(src-elc) | ||
|
||
$(src-d)/%.elc: $(src-d)/%.el | ||
@echo "compiling $<..." | ||
@$(batch) -f batch-byte-compile $< | ||
test: $(src-el) | ||
$(log) "\nrunning tests...\n" | ||
$(batch) -L $(src) -l $(tests-el) -f ert-run-tests-batch-and-exit | ||
|
||
clean: | ||
rm -f $(elc-f) | ||
rm -f $(src-elc) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.