mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
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:
parent
f32292367a
commit
e0afe6e94a
@ -12,3 +12,4 @@ check-local: src/pacman
|
|||||||
-p $(top_builddir)/src/pacman/pacman
|
-p $(top_builddir)/src/pacman/pacman
|
||||||
rm -rf $(top_builddir)/root
|
rm -rf $(top_builddir)/root
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
50
configure.ac
50
configure.ac
@ -30,38 +30,38 @@ AC_DEFINE_UNQUOTED([LIB_VERSION], ["$LIB_VERSION"], [libalpm version number])
|
|||||||
|
|
||||||
# Help line for root directory
|
# Help line for root directory
|
||||||
AC_ARG_WITH(root-dir,
|
AC_ARG_WITH(root-dir,
|
||||||
AC_HELP_STRING([--with-root-dir=path], [set the location of pacman's root operating directory]),
|
AC_HELP_STRING([--with-root-dir=path], [set the location of pacman's root operating directory]),
|
||||||
[ROOTDIR=$withval], [ROOTDIR=/])
|
[ROOTDIR=$withval], [ROOTDIR=/])
|
||||||
|
|
||||||
# Help line for package extension
|
# Help line for package extension
|
||||||
AC_ARG_WITH(pkg-ext,
|
AC_ARG_WITH(pkg-ext,
|
||||||
AC_HELP_STRING([--with-pkg-ext=ext], [set the file extension used by packages]),
|
AC_HELP_STRING([--with-pkg-ext=ext], [set the file extension used by packages]),
|
||||||
[PKGEXT=$withval], [PKGEXT=.pkg.tar.gz])
|
[PKGEXT=$withval], [PKGEXT=.pkg.tar.gz])
|
||||||
|
|
||||||
# Help line for source package directory
|
# Help line for source package directory
|
||||||
AC_ARG_WITH(src-ext,
|
AC_ARG_WITH(src-ext,
|
||||||
AC_HELP_STRING([--with-src-ext=ext], [set the file extension used by source packages]),
|
AC_HELP_STRING([--with-src-ext=ext], [set the file extension used by source packages]),
|
||||||
[SRCEXT=$withval], [SRCEXT=.src.tar.gz])
|
[SRCEXT=$withval], [SRCEXT=.src.tar.gz])
|
||||||
|
|
||||||
# Help line for database extension
|
# Help line for database extension
|
||||||
AC_ARG_WITH(db-ext,
|
AC_ARG_WITH(db-ext,
|
||||||
AC_HELP_STRING([--with-db-ext=ext], [set the file extension used by the database]),
|
AC_HELP_STRING([--with-db-ext=ext], [set the file extension used by the database]),
|
||||||
[DBEXT=$withval], [DBEXT=.db.tar.gz])
|
[DBEXT=$withval], [DBEXT=.db.tar.gz])
|
||||||
|
|
||||||
# Help line for doxygen
|
# Help line for doxygen
|
||||||
AC_ARG_ENABLE(doxygen,
|
AC_ARG_ENABLE(doxygen,
|
||||||
AC_HELP_STRING([--disable-doxygen], [do not build API docs via Doxygen]),
|
AC_HELP_STRING([--disable-doxygen], [do not build API docs via Doxygen]),
|
||||||
[wantdoxygen=$enableval], [wantdoxygen=yes])
|
[wantdoxygen=$enableval], [wantdoxygen=yes])
|
||||||
|
|
||||||
# Help line for debug
|
# Help line for debug
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
AC_HELP_STRING([--enable-debug], [enable debugging support]),
|
AC_HELP_STRING([--enable-debug], [enable debugging support]),
|
||||||
[debug=$enableval], [debug=no])
|
[debug=$enableval], [debug=no])
|
||||||
|
|
||||||
# Help line for abs
|
# Help line for abs
|
||||||
AC_ARG_ENABLE(abs,
|
AC_ARG_ENABLE(abs,
|
||||||
AC_HELP_STRING([--disable-abs], [do not include Arch Linux Build System script]),
|
AC_HELP_STRING([--disable-abs], [do not include Arch Linux Build System script]),
|
||||||
[includeabs=$enableval], [includeabs=yes])
|
[includeabs=$enableval], [includeabs=yes])
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_AWK
|
AC_PROG_AWK
|
||||||
@ -172,16 +172,16 @@ AC_SUBST(CHOST)
|
|||||||
# Check for doxygen support
|
# Check for doxygen support
|
||||||
AC_MSG_CHECKING([for doxygen])
|
AC_MSG_CHECKING([for doxygen])
|
||||||
if test "x$wantdoxygen" = "xyes" ; then
|
if test "x$wantdoxygen" = "xyes" ; then
|
||||||
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
||||||
if test $DOXYGEN ; then
|
if test $DOXYGEN ; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
usedoxygen=yes
|
usedoxygen=yes
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no, doxygen missing])
|
AC_MSG_RESULT([no, doxygen missing])
|
||||||
usedoxygen=no
|
usedoxygen=no
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no, disabled by configure])
|
AC_MSG_RESULT([no, disabled by configure])
|
||||||
usedoxygen=no
|
usedoxygen=no
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(HAS_DOXYGEN, test "x$usedoxygen" = "xyes")
|
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])
|
AC_DEFINE([PACMAN_DEBUG], , [Enable debug code])
|
||||||
CFLAGS="$CFLAGS -g -Wall -Werror -fstack-protector -std=c99"
|
CFLAGS="$CFLAGS -g -Wall -Werror -fstack-protector -std=c99"
|
||||||
LDFLAGS="$LDFLAGS -lmcheck"
|
LDFLAGS="$LDFLAGS -lmcheck"
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
CFLAGS="$CFLAGS -Wall -std=c99"
|
CFLAGS="$CFLAGS -Wall -std=c99"
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable or disable inclusion of abs script
|
# Enable or disable inclusion of abs script
|
||||||
AC_MSG_CHECKING(for inclusion of abs script)
|
AC_MSG_CHECKING(for inclusion of abs script)
|
||||||
if test "x$includeabs" = "xyes" ; then
|
if test "x$includeabs" = "xyes" ; then
|
||||||
AC_DEFINE([INCLUDE_ABS], , [Include abs script])
|
AC_DEFINE([INCLUDE_ABS], , [Include abs script])
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(INCLUDE_ABS, test "x$includeabs" = "xyes")
|
AM_CONDITIONAL(INCLUDE_ABS, test "x$includeabs" = "xyes")
|
||||||
|
|
||||||
@ -272,3 +272,5 @@ $PACKAGE_STRING:
|
|||||||
debug support : ${debug}
|
debug support : ${debug}
|
||||||
include abs : ${includeabs}
|
include abs : ${includeabs}
|
||||||
"
|
"
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -3,6 +3,8 @@ EXTRA_DIST = \
|
|||||||
pacsearch \
|
pacsearch \
|
||||||
pacdiff \
|
pacdiff \
|
||||||
re-pacman \
|
re-pacman \
|
||||||
|
wget-xdelta.sh \
|
||||||
zsh_completion \
|
zsh_completion \
|
||||||
README
|
README
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -15,3 +15,4 @@ EXTRA_DIST = $(man_MANS)
|
|||||||
clean-local:
|
clean-local:
|
||||||
$(RM) man3/*.3
|
$(RM) man3/*.3
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -32,3 +32,5 @@ $(dist_sysconf_DATA): Makefile
|
|||||||
|
|
||||||
makepkg.conf: $(srcdir)/makepkg.conf.in
|
makepkg.conf: $(srcdir)/makepkg.conf.in
|
||||||
pacman.conf: $(srcdir)/pacman.conf.in
|
pacman.conf: $(srcdir)/pacman.conf.in
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -1,17 +1,20 @@
|
|||||||
EXTRA_DIST = abs.conf \
|
EXTRA_DIST = \
|
||||||
supfile.arch \
|
abs.conf \
|
||||||
supfile.community \
|
supfile.arch \
|
||||||
supfile.extra \
|
supfile.community \
|
||||||
supfile.testing \
|
supfile.extra \
|
||||||
supfile.unstable
|
supfile.testing \
|
||||||
|
supfile.unstable
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
mkdir -p $(DESTDIR)$(sysconfdir)/abs ; \
|
mkdir -p $(DESTDIR)$(sysconfdir)/abs ; \
|
||||||
for j in $(EXTRA_DIST); do \
|
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
|
done
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
for j in $(EXTRA_DIST); do \
|
for j in $(EXTRA_DIST); do \
|
||||||
rm -f $(DESTDIR)$(sysconfdir)/abs/$$j ; \
|
rm -f $(DESTDIR)$(sysconfdir)/abs/$$j ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -13,10 +13,11 @@ $(dist_pkgsysconf_DATA): Makefile
|
|||||||
$(srcdir)/mirrorlist.in >$@.tmp
|
$(srcdir)/mirrorlist.in >$@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
|
||||||
community: $(srcdir)/mirrorlist.in
|
community: $(srcdir)/mirrorlist.in
|
||||||
current: $(srcdir)/mirrorlist.in
|
current: $(srcdir)/mirrorlist.in
|
||||||
extra: $(srcdir)/mirrorlist.in
|
extra: $(srcdir)/mirrorlist.in
|
||||||
release: $(srcdir)/mirrorlist.in
|
release: $(srcdir)/mirrorlist.in
|
||||||
testing: $(srcdir)/mirrorlist.in
|
testing: $(srcdir)/mirrorlist.in
|
||||||
unstable: $(srcdir)/mirrorlist.in
|
unstable: $(srcdir)/mirrorlist.in
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -52,3 +52,5 @@ doxygen.in:
|
|||||||
doxygen $(srcdir)/Doxyfile
|
doxygen $(srcdir)/Doxyfile
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -17,3 +17,5 @@ EXTRA_DIST = \
|
|||||||
TODO \
|
TODO \
|
||||||
ChangeLog \
|
ChangeLog \
|
||||||
$(check_SCRIPTS)
|
$(check_SCRIPTS)
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -37,7 +37,7 @@ edit = sed \
|
|||||||
-e 's|@prefix[@]|$(prefix)|g' \
|
-e 's|@prefix[@]|$(prefix)|g' \
|
||||||
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
|
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
|
||||||
-e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|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'
|
-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
|
## 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
|
repo-remove: $(srcdir)/repo-remove.in
|
||||||
re-pacman: $(srcdir)/re-pacman.in
|
re-pacman: $(srcdir)/re-pacman.in
|
||||||
updatesync: $(srcdir)/updatesync.in
|
updatesync: $(srcdir)/updatesync.in
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -26,9 +26,11 @@ pacman_SOURCES = \
|
|||||||
util.h util.c
|
util.h util.c
|
||||||
|
|
||||||
pacman_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la \
|
pacman_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la \
|
||||||
-ldownload
|
-ldownload
|
||||||
|
|
||||||
pacman_static_SOURCES = $(pacman_SOURCES)
|
pacman_static_SOURCES = $(pacman_SOURCES)
|
||||||
pacman_static_LDFLAGS = $(LDFLAGS) -all-static
|
pacman_static_LDFLAGS = $(LDFLAGS) -all-static
|
||||||
pacman_static_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la \
|
pacman_static_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la \
|
||||||
-ldownload
|
-ldownload
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -9,3 +9,5 @@ vercmp_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
|||||||
|
|
||||||
testpkg_SOURCES = testpkg.c
|
testpkg_SOURCES = testpkg.c
|
||||||
testpkg_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
testpkg_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user