diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4cbef87 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +SITE := ryuslash.srht.site +CURL := curl + +.PHONY: stamp-version + +stamp-version: + version=$$(git log -1 --format="%cd" --date=format:%Y.%m%d.%H%M); \ + sed -i "s/\(;; Version\): .*/\1: $$version/" tekuti.el + +package: + mkdir -p dist + emacs --batch --quick \ + --eval "(require 'package-x)" \ + --eval "(setq package-archive-upload-base \"dist\")" \ + --eval "(package-upload-file \"tekuti.el\")" + cd dist && tar cvzf ../tekuti.tar.gz . + +README.html: README.org + emacs --batch --quick \ + --eval "(require 'ox-html)" \ + --visit $< \ + --eval "(org-html-export-to-html nil nil nil t)" \ + +upload: + $(CURL) -f "https://pages.sr.ht/publish/$(SITE)/tekuti/elpa/" \ + -Fcontent=@tekuti.tar.gz + +clean: + rm -rfv README.html dist tekuti.tar.gz |