Autotool clean up.

* Add vim modeline to Makefile.am and configure.ac
	* Fix white space in Makefile.am and configure.ac
	* Add contrib/wget-xdelta.sh to EXTRA_DIST in Makefile.am

Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Andrew Fyfe 2007-06-04 22:49:09 +01:00 committed by Dan McGee
parent f32292367a
commit e0afe6e94a
12 changed files with 58 additions and 36 deletions

View File

@ -12,3 +12,4 @@ check-local: src/pacman
-p $(top_builddir)/src/pacman/pacman
rm -rf $(top_builddir)/root
# vim:set ts=2 sw=2 noet:

View File

@ -30,38 +30,38 @@ AC_DEFINE_UNQUOTED([LIB_VERSION], ["$LIB_VERSION"], [libalpm version number])
# Help line for root directory
AC_ARG_WITH(root-dir,
AC_HELP_STRING([--with-root-dir=path], [set the location of pacman's root operating directory]),
[ROOTDIR=$withval], [ROOTDIR=/])
AC_HELP_STRING([--with-root-dir=path], [set the location of pacman's root operating directory]),
[ROOTDIR=$withval], [ROOTDIR=/])
# Help line for package extension
AC_ARG_WITH(pkg-ext,
AC_HELP_STRING([--with-pkg-ext=ext], [set the file extension used by packages]),
[PKGEXT=$withval], [PKGEXT=.pkg.tar.gz])
AC_HELP_STRING([--with-pkg-ext=ext], [set the file extension used by packages]),
[PKGEXT=$withval], [PKGEXT=.pkg.tar.gz])
# Help line for source package directory
AC_ARG_WITH(src-ext,
AC_HELP_STRING([--with-src-ext=ext], [set the file extension used by source packages]),
[SRCEXT=$withval], [SRCEXT=.src.tar.gz])
AC_HELP_STRING([--with-src-ext=ext], [set the file extension used by source packages]),
[SRCEXT=$withval], [SRCEXT=.src.tar.gz])
# Help line for database extension
AC_ARG_WITH(db-ext,
AC_HELP_STRING([--with-db-ext=ext], [set the file extension used by the database]),
[DBEXT=$withval], [DBEXT=.db.tar.gz])
AC_HELP_STRING([--with-db-ext=ext], [set the file extension used by the database]),
[DBEXT=$withval], [DBEXT=.db.tar.gz])
# Help line for doxygen
AC_ARG_ENABLE(doxygen,
AC_HELP_STRING([--disable-doxygen], [do not build API docs via Doxygen]),
[wantdoxygen=$enableval], [wantdoxygen=yes])
AC_HELP_STRING([--disable-doxygen], [do not build API docs via Doxygen]),
[wantdoxygen=$enableval], [wantdoxygen=yes])
# Help line for debug
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [enable debugging support]),
[debug=$enableval], [debug=no])
AC_HELP_STRING([--enable-debug], [enable debugging support]),
[debug=$enableval], [debug=no])
# Help line for abs
AC_ARG_ENABLE(abs,
AC_HELP_STRING([--disable-abs], [do not include Arch Linux Build System script]),
[includeabs=$enableval], [includeabs=yes])
AC_HELP_STRING([--disable-abs], [do not include Arch Linux Build System script]),
[includeabs=$enableval], [includeabs=yes])
# Checks for programs.
AC_PROG_AWK
@ -172,16 +172,16 @@ AC_SUBST(CHOST)
# Check for doxygen support
AC_MSG_CHECKING([for doxygen])
if test "x$wantdoxygen" = "xyes" ; then
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test $DOXYGEN ; then
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test $DOXYGEN ; then
AC_MSG_RESULT([yes])
usedoxygen=yes
else
else
AC_MSG_RESULT([no, doxygen missing])
usedoxygen=no
fi
fi
else
AC_MSG_RESULT([no, disabled by configure])
AC_MSG_RESULT([no, disabled by configure])
usedoxygen=no
fi
AM_CONDITIONAL(HAS_DOXYGEN, test "x$usedoxygen" = "xyes")
@ -192,19 +192,19 @@ if test "x$debug" = "xyes" ; then
AC_DEFINE([PACMAN_DEBUG], , [Enable debug code])
CFLAGS="$CFLAGS -g -Wall -Werror -fstack-protector -std=c99"
LDFLAGS="$LDFLAGS -lmcheck"
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
else
CFLAGS="$CFLAGS -Wall -std=c99"
AC_MSG_RESULT(no)
AC_MSG_RESULT(no)
fi
# Enable or disable inclusion of abs script
AC_MSG_CHECKING(for inclusion of abs script)
if test "x$includeabs" = "xyes" ; then
AC_DEFINE([INCLUDE_ABS], , [Include abs script])
AC_MSG_RESULT(yes)
AC_DEFINE([INCLUDE_ABS], , [Include abs script])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(INCLUDE_ABS, test "x$includeabs" = "xyes")
@ -272,3 +272,5 @@ $PACKAGE_STRING:
debug support : ${debug}
include abs : ${includeabs}
"
# vim:set ts=2 sw=2 noet:

View File

@ -3,6 +3,8 @@ EXTRA_DIST = \
pacsearch \
pacdiff \
re-pacman \
wget-xdelta.sh \
zsh_completion \
README
# vim:set ts=2 sw=2 noet:

View File

@ -15,3 +15,4 @@ EXTRA_DIST = $(man_MANS)
clean-local:
$(RM) man3/*.3
# vim:set ts=2 sw=2 noet:

View File

@ -32,3 +32,5 @@ $(dist_sysconf_DATA): Makefile
makepkg.conf: $(srcdir)/makepkg.conf.in
pacman.conf: $(srcdir)/pacman.conf.in
# vim:set ts=2 sw=2 noet:

View File

@ -1,17 +1,20 @@
EXTRA_DIST = abs.conf \
supfile.arch \
supfile.community \
supfile.extra \
supfile.testing \
supfile.unstable
EXTRA_DIST = \
abs.conf \
supfile.arch \
supfile.community \
supfile.extra \
supfile.testing \
supfile.unstable
install-data-hook:
mkdir -p $(DESTDIR)$(sysconfdir)/abs ; \
for j in $(EXTRA_DIST); do \
$(INSTALL) -c -m 644 $(srcdir)/$$j $(DESTDIR)$(sysconfdir)/abs/$$j ; \
$(INSTALL) -c -m 644 $(srcdir)/$$j $(DESTDIR)$(sysconfdir)/abs/$$j ; \
done
uninstall-hook:
for j in $(EXTRA_DIST); do \
rm -f $(DESTDIR)$(sysconfdir)/abs/$$j ; \
rm -f $(DESTDIR)$(sysconfdir)/abs/$$j ; \
done
# vim:set ts=2 sw=2 noet:

View File

@ -13,10 +13,11 @@ $(dist_pkgsysconf_DATA): Makefile
$(srcdir)/mirrorlist.in >$@.tmp
mv $@.tmp $@
community: $(srcdir)/mirrorlist.in
current: $(srcdir)/mirrorlist.in
extra: $(srcdir)/mirrorlist.in
release: $(srcdir)/mirrorlist.in
testing: $(srcdir)/mirrorlist.in
unstable: $(srcdir)/mirrorlist.in
# vim:set ts=2 sw=2 noet:

View File

@ -52,3 +52,5 @@ doxygen.in:
doxygen $(srcdir)/Doxyfile
endif
# vim:set ts=2 sw=2 noet:

View File

@ -17,3 +17,5 @@ EXTRA_DIST = \
TODO \
ChangeLog \
$(check_SCRIPTS)
# vim:set ts=2 sw=2 noet:

View File

@ -37,7 +37,7 @@ edit = sed \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|@configure_input[@]|Generated from $@.in; do not edit by hand.|g'
## All the scripts depend on Makefile so that they are rebuilt when the
@ -60,3 +60,5 @@ repo-add: $(srcdir)/repo-add.in
repo-remove: $(srcdir)/repo-remove.in
re-pacman: $(srcdir)/re-pacman.in
updatesync: $(srcdir)/updatesync.in
# vim:set ts=2 sw=2 noet:

View File

@ -26,9 +26,11 @@ pacman_SOURCES = \
util.h util.c
pacman_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la \
-ldownload
-ldownload
pacman_static_SOURCES = $(pacman_SOURCES)
pacman_static_LDFLAGS = $(LDFLAGS) -all-static
pacman_static_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la \
-ldownload
-ldownload
# vim:set ts=2 sw=2 noet:

View File

@ -9,3 +9,5 @@ vercmp_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
testpkg_SOURCES = testpkg.c
testpkg_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
# vim:set ts=2 sw=2 noet: