[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 8947650b95 119/308: Rewritten Makefile to use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 8947650b95 119/308: Rewritten Makefile to use Carton. |
Date: |
Tue, 25 Jan 2022 10:59:37 -0500 (EST) |
branch: elpa/drupal-mode
commit 8947650b9587e9fed74be2c69436f51a16fc9312
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Rewritten Makefile to use Carton.
---
Carton | 3 +++
Makefile | 37 +++++++++++++++++--------------------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/Carton b/Carton
new file mode 100644
index 0000000000..d4838337c6
--- /dev/null
+++ b/Carton
@@ -0,0 +1,3 @@
+(package-file "drupal-mode.el")
+
+(source "marmalade" "http://marmalade-repo.org/packages/")
diff --git a/Makefile b/Makefile
index bf4c94c194..8266815737 100644
--- a/Makefile
+++ b/Makefile
@@ -19,41 +19,38 @@
.PHONY: all test clean install
-ARCHIVE_NAME:=drupal-mode
-VERSION:=$(shell emacs --batch -l package --eval "(with-temp-buffer \
- (insert-file \"$(ARCHIVE_NAME).el\")\
- (princ (aref (package-buffer-info) 3)))")
-PACKAGE_NAME:=$(ARCHIVE_NAME)-$(VERSION)
+CARTON?=carton
+EMACS?=emacs
+TAR?=bsdtar
+PANDOC?=pandoc --atx-headers
+
+VERSION?=$(shell $(CARTON) version)
+
+ARCHIVE_NAME=drupal-mode
+PACKAGE_NAME=$(ARCHIVE_NAME)-$(VERSION)
all: $(PACKAGE_NAME).tar
test:
- emacs --batch --user `whoami` -L `pwd` -l drupal-tests -f
ert-run-tests-batch-and-exit
+ $(CARTON) install
+ $(CARTON) exec $(EMACS) --no-site-file --no-site-lisp --batch -L $(PWD)
-l drupal-tests -f ert-run-tests-batch-and-exit
$(ARCHIVE_NAME).info: README.md
- pandoc -t texinfo $^ | makeinfo -o $@
+ $(PANDOC) -t texinfo $^ | makeinfo -o $@
README: README.md
- pandoc --atx-headers -t plain -o $@ $^
+ $(PANDOC) -t plain -o $@ $^
-# requires package-build.el from https://github.com/milkypostman/melpa
-# to be available in your emacs load-path
$(ARCHIVE_NAME)-pkg.el: $(ARCHIVE_NAME).el
- emacs --batch --user `whoami` -l package-build --eval "(progn \
- (pb/write-pkg-file \
- \"$(ARCHIVE_NAME)-pkg.el\" \
- (with-temp-buffer \
- (insert-file \"$(ARCHIVE_NAME).el\") \
- (package-buffer-info))))"
+ $(CARTON) package
# create a tar ball in package.el format for uploading to
http://marmalade-repo.org
$(PACKAGE_NAME).tar: README $(ARCHIVE_NAME).el $(ARCHIVE_NAME)-pkg.el
$(ARCHIVE_NAME).info dir drupal/*.el drupal-tests.el drush-make-mode.el
- tar -c -s "@^@$(PACKAGE_NAME)/@" -f $(PACKAGE_NAME).tar $^
+ $(TAR) -c -s "@^@$(PACKAGE_NAME)/@" -f $(PACKAGE_NAME).tar $^
install: $(PACKAGE_NAME).tar
- emacs --batch --user `whoami` -l package --eval "(progn \
- (package-initialize)\
- (package-install-file \"`pwd`/$(PACKAGE_NAME).tar\"))"
+ $(EMACS) --batch -l package -f package-initialize --eval
"(package-install-file \"$(PWD)/$(PACKAGE_NAME).tar\")"
clean:
$(RM) $(ARCHIVE_NAME).info $(ARCHIVE_NAME)-*.tar $(ARCHIVE_NAME)-pkg.el
README
+ $(RM) -r elpa
- [nongnu] elpa/drupal-mode 7d2d703ab9 017/308: Merge branch 'feature/documentation' into develop, (continued)
- [nongnu] elpa/drupal-mode 7d2d703ab9 017/308: Merge branch 'feature/documentation' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6fbdb4e9ad 020/308: Made customization of search URLs more intuitive., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 1e06f39e9f 025/308: Added `drupal-drush-cache-clear'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 85040ec2e5 062/308: Actually enable flymake-mode in Drupal buffers., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9c5f0066d5 071/308: Added function arguments on `drupal-insert-hook'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6b22e8c714 059/308: Added copyright and author comments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bb47e5d71b 086/308: Replaced nested `if's with `cond'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode de6c1b1442 057/308: Better checking for major modes., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5e5f6e2782 084/308: Added drupal-mode support for `auto-insert-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 511fa0de3f 104/308: Ensured file extensions are actually extensions., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8947650b95 119/308: Rewritten Makefile to use Carton.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 043d79f4ff 127/308: Sort imenu entries by name in .make files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3f306071da 137/308: Drupal 8 moved the version number to a new file., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 38783166f3 143/308: Check for drupal/flycheck-phpcs-js-and-css in predicate, now we don't enforce it., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8d57a2a3d6 146/308: Added `hash-table-p` check., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 274015c27a 147/308: Merge pull request #37 from xendk/develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4adeb0c218 150/308: Fixed tar on Mac OS X., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e20d8fefaa 153/308: Swicth to https links to Drupal.org., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8eec967164 152/308: Fixed latest commit., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 36a8caff76 156/308: Bumped version number to 0.3.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 557f34c5d3 163/308: Fixed tar on Mac OS X., ELPA Syncer, 2022/01/25