]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/gnome-c-style/Makefile
Merge commit 'cce1d8b50b1ceccb80c20398cd659db3a6348aac' as 'packages/gnome-c-style'
[gnu-emacs-elpa] / packages / gnome-c-style / Makefile
diff --git a/packages/gnome-c-style/Makefile b/packages/gnome-c-style/Makefile
new file mode 100644 (file)
index 0000000..571841e
--- /dev/null
@@ -0,0 +1,16 @@
+EMACS ?= emacs
+RM ?= rm
+ELC = gnome-c-align.elc gnome-c-snippet.elc gnome-c-style.elc
+
+all: $(ELC)
+
+%.elc: %.el
+       $(EMACS) -Q -batch --eval "(setq load-path (cons nil load-path))" \
+               -f batch-byte-compile $<
+
+check:
+       $(EMACS) -Q -batch --eval "(setq load-path (cons nil load-path))" \
+               -l ert -l gnome-c-tests.el -f ert-run-tests-batch-and-exit
+
+clean:
+       $(RM) -rf $(ELC)