[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bnf-mode f99de60 47/74: Cleaned up Makefile
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bnf-mode f99de60 47/74: Cleaned up Makefile |
Date: |
Thu, 9 May 2019 08:27:51 -0400 (EDT) |
branch: externals/bnf-mode
commit f99de60613956d4fcd273a66262abf4a399154fe
Author: Serghei Iakovlev <address@hidden>
Commit: Serghei Iakovlev <address@hidden>
Cleaned up Makefile
---
.gitignore | 1 -
Makefile | 20 ++++++++++----------
2 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/.gitignore b/.gitignore
index 87befbc..2212c96 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,4 +9,3 @@
*.elc
.cask/
README
-README.org2
diff --git a/Makefile b/Makefile
index 6ff1a65..f6bfbee 100644
--- a/Makefile
+++ b/Makefile
@@ -22,15 +22,17 @@
SHELL := $(shell which bash)
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
-EMACS := emacs
-CASK = cask
+EMACS ?= emacs
+CASK ?= cask
PANDOC ?= pandoc
EMACSFLAGS ?=
TESTFLAGS ?= --reporter ert+duration
PANDOCLAGS ?= --fail-if-warnings \
--reference-links \
- --atx-headers
+ --atx-headers \
+ -f org+empty_paragraphs \
+ -t plain
PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
@@ -44,7 +46,7 @@ VERSION ?= $(shell $(CASK) version)
.ONESHELL: ; # recipes execute in same shell
.NOTPARALLEL: ; # wait for this target to finish
.EXPORT_ALL_VARIABLES: ; # send all vars to shell
-Makefile: ; # skip prerequisite discovery
+Makefile: ; # skip prerequisite discovery
# Run make help by default
.DEFAULT_GOAL = build
@@ -69,11 +71,9 @@ $(PKGDIR): Cask
$(CASK) install
touch $(PKGDIR)
-README: README.org2
- $(PANDOC) $(PANDOCLAGS) -f org+empty_paragraphs -t plain -o $@ $^
-
-README.org2: README.org
- $(shell cat $^ | sed -e "s/\[\[.*\.svg\]\]//g" > $@)
+RE_BADGES = "s/\[\[.*\.svg\]\]//g"
+README: README.org
+ $(shell cat $^ | sed -e $(RE_BADGES) | $(PANDOC) $(PANDOCLAGS) -o $@)
# Public targets
@@ -98,7 +98,7 @@ test:
.PHONY: clean
clean:
$(CASK) clean-elc
- $(RM) -f README README.org2
+ $(RM) -f README
.PHONY: help
help: .title
- [elpa] externals/bnf-mode defc412 11/74: Amended description and docs, (continued)
- [elpa] externals/bnf-mode defc412 11/74: Amended description and docs, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode aa2c7a2 30/74: Correct change log formatting [ci skip], Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode c90b14d 26/74: Correct documentation to follow code style guide., Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode a3a77e3 29/74: In the BNF there are no grouping brackets except angle ones. Fixed, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 1698dc8 39/74: Improved documentation, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 64a32ba 42/74: Cleaned up Makefile, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode a53ade1 24/74: Fixed BNF rule name definition to follow ALGOL 60 report, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 65bfadc 65/74: Fixed orthodox comments regexp, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode e2f8bfa 53/74: Added support of ; character to use in terminals, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 3a46f17 36/74: Correct documentation, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode f99de60 47/74: Cleaned up Makefile,
Stefan Monnier <=
- [elpa] externals/bnf-mode 7bbf329 49/74: Added comment-start-skip to help comment commands recognize comments, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 00a0543 50/74: Removed not used tests macro, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 6eb06a8 52/74: Make tests easier to read, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 273eabd 31/74: Correct change log formatting (II) [ci skip], Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 687ee9e 16/74: Angle brackets to use for nonterminals are optional. Changed, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 83f0e0f 28/74: Code cleanup, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 96c6e76 61/74: Changed CI deploy token [ci skip], Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 8dabc6c 63/74: Minor correction to the change log format, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode e898672 73/74: Removed no longer needed local variables, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode f95ec5f 69/74: Improved preparing package, Stefan Monnier, 2019/05/09