summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-27 19:11:08 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-27 19:11:08 -0200
commit16a78aa66239bd25bd63aa04a2ea5d0924f72bff (patch)
tree53ef966f38e182a8077c3e43ce3fe4fd48c156bf
parentbf8dedf369eee5fffbf2ac2984a3b6c319ece98f (diff)
Janitor: Correct make distcheck and configure.ac simplification
-rw-r--r--.gitignore3
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac19
3 files changed, 15 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 89cca0f..02b2ee8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,6 @@ configure
install-sh
missing
*~
+font-misc-meltho-*.tar.*
+ChangeLog
+tags
diff --git a/Makefile.am b/Makefile.am
index 926c3b3..7ca27ee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,7 +46,7 @@ FONT_FILES = \
fontdir = @FONTDIR@
font_DATA = $(FONT_FILES)
-EXTRA_DIST = $(FONT_FILES) license.txt README autogen.sh
+EXTRA_DIST = $(FONT_FILES) license.txt README
install-data-hook:
@rm -f $(DESTDIR)$(fontdir)/fonts.scale
@@ -64,6 +64,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 9eaec91..54e413a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,17 +26,11 @@ AC_INIT(font-misc-meltho, [1.0.0], [https://bugs.freedesktop.org/enter_bug.cgi?p
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
-m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
-
-DEFAULT_FONTDIR=${libdir}/X11/fonts/OTF
-AC_ARG_WITH(fontdir,
- AS_HELP_STRING([--with-fontdir=FONTDIR], [Path to install fonts]),
- [FONTDIR="$withval"],
- [FONTDIR="$DEFAULT_FONTDIR"])
-AC_SUBST(FONTDIR)
-
AC_PATH_PROG(MKFONTSCALE, mkfontscale)
if test x"$MKFONTSCALE" = x; then
AC_MSG_ERROR([mkfontscale is required to build misc-meltho fonts.])
@@ -47,6 +41,13 @@ if test x"$MKFONTDIR" = x; then
fi
AC_PATH_PROG(FCCACHE, fc-cache)
+fontdir=${libdir}/X11/fonts/OTF
+AC_ARG_WITH(fontdir, AC_HELP_STRING([--with-fontdir=<pathname>],
+ [Path to install fonts]), [fontdir="$withval"])
+FONTDIR="$fontdir"
+AC_SUBST(FONTDIR)
+
XORG_RELEASE_VERSION
+XORG_CHANGELOG
AC_OUTPUT([Makefile])