summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-27 19:11:07 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-27 19:11:07 -0200
commit8b3bdeb793187e2251b6691c41be9f9738384106 (patch)
treeb32f2d780d4d80717d801c4799c8ca6766a61e97
parent0d475f0752cd24a5edddd4e1c51c37eeefb640e8 (diff)
Janitor: Correct make distcheck and configure.ac simplification
-rw-r--r--.gitignore3
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac15
3 files changed, 13 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index f4e6bd9..691d97e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,6 @@ configure
install-sh
missing
*~
+font-bh-lucidatypewriter-100dpi-*.tar.*
+ChangeLog
+tags
diff --git a/Makefile.am b/Makefile.am
index 6c0e055..a11bfd3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -161,7 +161,7 @@ BUILT_BDF_FILES = \
$(ISO8859_15_BDF_FILES)
CLEANFILES = $(font_DATA) $(BUILT_BDF_FILES)
-EXTRA_DIST = $(BDF_FILES) autogen.sh
+EXTRA_DIST = $(BDF_FILES)
all-local: $(BUILT_BDF_FILES) $(font_DATA)
@@ -180,6 +180,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 ef6fd93..fb997e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,9 @@ AC_INIT(font-bh-lucidatypewriter-100dpi, [1.0.0], [https://bugs.freedesktop.org/
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_PROG(BDFTOPCF, bdftopcf)
@@ -39,13 +42,10 @@ if test x"$MKFONTDIR" = x; then
AC_MSG_ERROR([mkfontdir is required to build bh-lucidatypewriter-100dpi fonts.])
fi
-m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
-
-DEFAULT_FONTDIR=${libdir}/X11/fonts/100dpi
-AC_ARG_WITH(fontdir,
- AS_HELP_STRING([--with-fontdir=FONTDIR], [Path to install fonts]),
- [FONTDIR="$withval"],
- [FONTDIR="$DEFAULT_FONTDIR"])
+fontdir=${libdir}/X11/fonts/100dpi
+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])
@@ -63,5 +63,6 @@ XORG_FONT_CHECK_ISO8859_14
XORG_FONT_CHECK_ISO8859_15
XORG_RELEASE_VERSION
+XORG_CHANGELOG
AC_OUTPUT([Makefile])