branch: externals/bnf-mode commit aed186d91b956e55e76867f2ce46506423c439e1 Author: Serghei Iakovlev <serg...@phalconphp.com> Commit: Serghei Iakovlev <serg...@phalconphp.com>
Provided ability to build installation package. --- .gitignore | 2 ++ CHANGELOG.org | 2 ++ Cask | 1 - Makefile | 19 ++++++++++++++++--- dir | 18 ++++++++++++++++++ 5 files changed, 38 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8a951a8..d650495 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,6 @@ *.elc .cask/ bnf-mode.info +bnf-mode-pkg.el +bnf-mode-*.tar README diff --git a/CHANGELOG.org b/CHANGELOG.org index 5d0b6a7..01de194 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -11,6 +11,8 @@ The format is based on [[http://keepachangelog.com][Keep a Changelog]] and this - Return back =comment-start= and =comment-end= removed in [[https://github.com/sergeyklay/bnf-mode/commit/83f0e0fc144e453bcce459d2d655a7b48e77953e][83f0e0f]] - More intelligent terminal syntax recognition. Added support of "=;=" character as an extra character used in terminals. +- Provided ability to build installation package. + See =make help= for more. ** [[https://github.com/sergeyklay/bnf-mode/compare/0.3.1...0.3.2][0.3.2]] - 2019-03-24 *** Changed diff --git a/Cask b/Cask index 78bddd4..bd39524 100644 --- a/Cask +++ b/Cask @@ -9,7 +9,6 @@ (development (depends-on "f") - (depends-on "ert-x") (depends-on "cl-lib") (depends-on "ert-runner") (depends-on "undercover")) diff --git a/Makefile b/Makefile index 02078b4..62bb55d 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) EMACS ?= emacs CASK ?= cask PANDOC ?= pandoc +TAR ?= COPYFILE_DISABLE=1 bsdtar EMACSFLAGS ?= TESTFLAGS ?= --reporter ert+duration @@ -39,8 +40,9 @@ PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory) SRCS = bnf-mode.el OBJS = $(SRCS:.el=.elc) -ARCHIVE_NAME=bnf-mode +ARCHIVE_NAME = bnf-mode VERSION ?= $(shell $(CASK) version) +PACKAGE_NAME = $(ARCHIVE_NAME)-$(VERSION) .SILENT: ; # no need for @ .ONESHELL: ; # recipes execute in same shell @@ -81,6 +83,12 @@ $(ARCHIVE_NAME).info: README.org README: README.org $(call org-clean,$^) | $(PANDOC) $(PANDOCLAGS) -t plain -o $@ +$(ARCHIVE_NAME)-pkg.el: $(ARCHIVE_NAME).el + $(CASK) pkg-file + +$(PACKAGE_NAME).tar: README $(ARCHIVE_NAME).el $(ARCHIVE_NAME)-pkg.el $(ARCHIVE_NAME).info dir + $(TAR) -c -s "@^@$(PACKAGE_NAME)/@" -f $(PACKAGE_NAME).tar $^ + # Public targets .PHONY: .title @@ -104,7 +112,10 @@ test: .PHONY: clean clean: $(CASK) clean-elc - $(RM) -f README + $(RM) -f README $(ARCHIVE_NAME).info $(ARCHIVE_NAME)-pkg.el + +.PHONY: package +package: $(PACKAGE_NAME).tar .PHONY: help help: .title @@ -117,9 +128,11 @@ help: .title echo ' build: Byte compile BNF Mode package' echo ' test: Run the non-interactive unit test suite' echo ' clean: Remove all byte compiled Elisp files' + echo ' package: Build package' echo '' echo 'Available programs:' echo ' $(CASK): $(if $(HAVE_CASK),yes,no)' echo '' - echo 'You need $(CASK) to develop BNF Mode. See http://cask.readthedocs.io/ for more.' + echo 'You need $(CASK) to develop BNF Mode.' + echo 'See http://cask.readthedocs.io/ for more.' echo '' diff --git a/dir b/dir new file mode 100644 index 0000000..f96d9de --- /dev/null +++ b/dir @@ -0,0 +1,18 @@ +This is the file .../info/dir, which contains the +topmost node of the Info hierarchy, called (dir)Top. +The first time you invoke Info you start off looking at this node. + +File: dir, Node: Top This is the top of the INFO tree + + This (the Directory node) gives a menu of major topics. + Typing "q" exits, "?" lists all Info commands, "d" returns here, + "h" gives a primer for first-timers, + "mEmacs<Return>" visits the Emacs manual, etc. + + In Emacs, you can click mouse button 2 on a menu item or cross reference + to select it. + +* Menu: + +Languages +* BNF Mode: (bnf-mode). Major mode for editing BNF grammars.