home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fa5f04d26be66ccece7ad42307379d213664f15c
parent e15ccf203d8c99f5bdbf4dc0e6864512bd6633b6
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sat,  9 May 2020 14:06:08 +0200

Add lib/lisp and update Makefile

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
MMakefile | 22+++++++++++++++-------
Alib/lisp/docs.el | 13+++++++++++++
Rpublish.el -> lib/lisp/publish.el | 0
3 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,6 +12,7 @@ DOTNIXPKGS = ~/.config/nixpkgs ETCNIXOS = /etc/nixos SYNCDIR = /home/vincent/sync/nixos PUBLISH_FOLDER = ~/desktop/sites/beta.sbr.pm +SRCWWW = ~/src/www # Targets .PHONY: all @@ -79,19 +80,26 @@ clean-www: -rm -rvf *.elc -rm -rv ~/.org-timestamps/* -# Documentatino build and publishing +# Documentation build and publishing +.PHONY: update-docs +update-docs: + @echo "Updating docs references…" + $(EMACS) --batch --directory $(DOTEMACS)/lisp/ \ + --load lib/lisp/docs.el \ + --funcall update-org-include + .PHONY: build-www -build-www: ${HOME}/src/www/publish-common.el publish.el +build-www: $(SRCWWW)/publish-common.el lib/lisp/publish.el update-docs @echo "Publishing... with current Emacs configurations." ${EMACS} --batch --directory $(DOTEMACS)/lisp/ \ - --load ${HOME}/src/www/publish-common.el --load publish.el \ + --load $(SRCWWW)/publish-common.el --load lib/lisp/publish.el \ --funcall org-publish-all -${HOME}/src/www/Makefile: ${HOME}/src/www/ -${HOME}/src/www/publish-common.el: ${HOME}/src/www/ +$(SRCWWW)/Makefile: $(SRCWWW) +$(SRCWWW)/publish-common.el: $(SRCWWW) -${HOME}/src/www/: - test -d ${HOME}/src/www || git clone git@git.sr.ht:~vdemeester/www.git ${HOME}/src/www/ +$(SRCWWW): + test -d $(SRCWWW) || git clone git@git.sr.ht:~vdemeester/www.git $(SRCWWW) # Setup and doctor .PHONY: doctor diff --git a/lib/lisp/docs.el b/lib/lisp/docs.el @@ -0,0 +1,13 @@ +;;; docs.el --- Docs functions -*- lexical-binding: t; -*- +;; Author: Vincent Demeester <vincent@sbr.pm> + +;;; Commentary: +;; This contains a group of function to update docs/ org includes. + +;;; Code: +(defun update-org-include () + "Updates #+INCLUDE in docs/ org-mode files" + (message "TODO")) + +(provide 'docs) +;;; docs.el ends here diff --git a/publish.el b/lib/lisp/publish.el