X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=04f5e88d82f49accf24a45a214786e94dd33dfc1;hp=0000000000000000000000000000000000000000;hb=c9586c17fd94ebfb8dd712f30dcf224ea130a8f9;hpb=6456c8b47937b555be8620379e73292a9300a848 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..04f5e88 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +#!/usr/bin/make -f +# +# This is free and unencumbered software released into the public +# domain. +# +# Anyone is free to copy, modify, publish, use, compile, sell, or +# distribute this software, either in source code form or as a +# compiled binary, for any purpose, commercial or non-commercial, and +# by any means. + +EMACS ?= $(firstword $(shell command -v /Applications/Emacs.app/Contents/MacOS/Emacs emacs)) +SRC := pelican-mode.el +OBJ := $(SRC:.el=.elc) +DIR := $(dir $(lastword $(MAKEFILE_LIST))) +TESTS := $(SRC:.el=.test.stamp) + +.INTERMEDIATE: $(TESTS) + +all: $(OBJ) test + +clean: + rm -f $(OBJ) $(TESTS) + +test: $(TESTS) + +%.elc: %.el + $(EMACS) -Q -batch -L $(DIR) -f batch-byte-compile $< + +%.test.stamp: %-test.elc %.elc + $(EMACS) -Q -batch -L $(DIR) -eval "(checkdoc-file \"$*.el\")" + $(EMACS) -Q -batch -L $(DIR) -l $< -f ert-run-tests-batch-and-exit + touch $@ + +.PHONY: all clean test