mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
7c06e66c24
Use the bash script in contrib as the basis for a C rewrite using libalpm. The speedup can go from dozens of seconds to less than one second. Colorized output is preserved. The --graph option generates output that graphviz's `dot' utility will understand to draw us a graph. Output is written to stdout and it is left up to the user to pipe the data and determine the output characteristics. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
35 lines
956 B
Makefile
35 lines
956 B
Makefile
# paths set at make time
|
|
conffile = ${sysconfdir}/pacman.conf
|
|
dbpath = ${localstatedir}/lib/pacman/
|
|
cachedir = ${localstatedir}/cache/pacman/pkg/
|
|
|
|
bin_PROGRAMS = vercmp testpkg testdb cleanupdelta pactree
|
|
|
|
DEFS = -DLOCALEDIR=\"@localedir@\" \
|
|
-DCONFFILE=\"$(conffile)\" \
|
|
-DROOTDIR=\"$(ROOTDIR)\" \
|
|
-DDBPATH=\"$(dbpath)\" \
|
|
-DCACHEDIR=\"$(cachedir)\" \
|
|
@DEFS@
|
|
INCLUDES = -I$(top_srcdir)/lib/libalpm
|
|
|
|
AM_CFLAGS = -pedantic -D_GNU_SOURCE
|
|
|
|
vercmp_SOURCES = vercmp.c
|
|
vercmp_LDADD = $(top_builddir)/lib/libalpm/version.o
|
|
|
|
testpkg_SOURCES = testpkg.c
|
|
testpkg_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
|
|
|
testdb_SOURCES = testdb.c
|
|
testdb_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
|
|
|
cleanupdelta_SOURCES = cleanupdelta.c
|
|
cleanupdelta_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
|
|
|
pactree_SOURCES = pactree.c
|
|
pactree_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
|
|
|
|
|
|
# vim:set ts=2 sw=2 noet:
|