diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-27 19:11:08 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-27 19:11:08 -0200 |
commit | 81881c2da9610cdfccf61685a091dbf5db7c415b (patch) | |
tree | b43baec1927f417ce910f9e571425a80fedb2aa2 | |
parent | 8ca2261df425c58a994e4c1a98984f6c0a5f036d (diff) |
Janitor: Correct make distcheck and configure.ac simplification
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 16 |
3 files changed, 13 insertions, 10 deletions
@@ -11,3 +11,6 @@ configure install-sh missing *~ +font-schumacher-misc-*.tar.* +ChangeLog +tags diff --git a/Makefile.am b/Makefile.am index 114cb28..ec7782c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -251,7 +251,7 @@ BUILT_BDF_FILES = \ $(KOI8_R_BDF_FILES) CLEANFILES = $(font_DATA) $(TRUNC_BDF_FILES) $(BUILT_BDF_FILES) -EXTRA_DIST = $(BDF_FILES) autogen.sh +EXTRA_DIST = $(BDF_FILES) all-local: $(BUILT_BDF_FILES) $(font_DATA) @@ -270,6 +270,6 @@ MAINTAINERCLEANFILES = ChangeLog .PHONY: ChangeLog ChangeLog: - (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + $(CHANGELOG_CMD) dist-hook: ChangeLog diff --git a/configure.ac b/configure.ac index 515eb1a..d32e472 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,9 @@ AC_INIT(font-schumacher-misc, [1.0.0], [https://bugs.freedesktop.org/enter_bug.c AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE +# Require xorg-macros: XORG_CHANGELOG +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.2) AC_PROG_INSTALL AC_PATH_PROGS(PERL, perl perl5) @@ -41,14 +44,10 @@ if test x"$MKFONTDIR" = x; then AC_MSG_ERROR([mkfontdir is required to build schumacher-misc fonts.]) fi - -m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) - -DEFAULT_FONTDIR=${libdir}/X11/fonts/misc -AC_ARG_WITH(fontdir, - AS_HELP_STRING([--with-fontdir=FONTDIR], [Path to install fonts]), - [FONTDIR="$withval"], - [FONTDIR="$DEFAULT_FONTDIR"]) +fontdir=${libdir}/X11/fonts/misc +AC_ARG_WITH(fontdir, AC_HELP_STRING([--with-fontdir=<pathname>], + [Path to install fonts]), [fontdir="$withval"]) +FONTDIR="$fontdir" AC_SUBST(FONTDIR) PKG_CHECK_MODULES(MAPS, [fontutil]) @@ -71,5 +70,6 @@ XORG_FONT_CHECK_ISO8859_16 XORG_FONT_CHECK_KOI8_R XORG_RELEASE_VERSION +XORG_CHANGELOG AC_OUTPUT([Makefile]) |