emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/emms e2b3bc8e4a 1/2: * Makefile: add targets for testin


From: ELPA Syncer
Subject: [elpa] externals/emms e2b3bc8e4a 1/2: * Makefile: add targets for testing
Date: Fri, 8 Jul 2022 17:57:33 -0400 (EDT)

branch: externals/emms
commit e2b3bc8e4a8c9662b4de5f50d97f3a0a7c7b71ff
Author: Yoni Rabkin <yoni@rabkins.net>
Commit: Yoni Rabkin <yoni@rabkins.net>

    * Makefile: add targets for testing
---
 Makefile | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/Makefile b/Makefile
index b64f34db0a..dbc2a16b73 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,28 @@
+## Copyright (C) 2006, 2008, 2010, 2012, 2014, 2016-2022  Free Software 
Foundation, Inc.
+##
+## This file is part of EMMS.
+##
+## EMMS is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 3, or (at your option)
+## any later version.
+##
+## EMMS is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with EMMS; if not, write to the Free Software Foundation,
+## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+## Release testing
+##
+## As a policy, each release of Emms should be tested to compile and
+## run well on the two latest Emacs releases.
+
+
+## Code:
 GZIP=gzip
 MAN1PAGES=emms-print-metadata.1
 DOCDIR=doc/
@@ -17,6 +42,11 @@ MAN1DIR=$(PREFIX)/share/man/man1
 BINDIR=$(PREFIX)/bin
 SITELISP=$(PREFIX)/share/emacs/site-lisp/emms
 
+# testing against previous versions
+PRINT_VERSION=--eval='(message "\n%s" (emacs-version))'
+RELEASE_BIN=$(EMACS)
+PREV_RELEASE_BIN=$(EMACS)
+
 GINSTALLINFO = /usr/bin/ginstall-info --info-dir=$(INFODIR)
 # For systems without ginstall-info
 INSTALLINFO = /usr/bin/install-info --info-dir=$(INFODIR)
@@ -46,6 +76,15 @@ emms-auto.el: emms-auto.in $(SOURCE)
 docs:
        $(MAKE) -C $(DOCDIR)
 
+.PHONY: show_version
+show_version:
+       @$(EMACS) $(SITEFLAG) -batch $(PRINT_VERSION)
+
+.PHONY
+test_releases:
+       ($(MAKE) EMACS=$(RELEASE_BIN); $(MAKE) clean)
+       ($(MAKE) EMACS=$(PREV_RELEASE_BIN); $(MAKE) clean)
+
 emms-print-metadata: $(SRCDIR)/emms-print-metadata.cpp
        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $(SRCDIR)/$@ $< 
`taglib-config --cflags --libs`
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]