makepkg: deal with variable substitution when checking sanity
[pacman-ng.git] / src / pacman / Makefile.am
blob3790bdf4e499df516c7d0462c6921266bc2b9dc2
1 SUBDIRS = po
3 # paths set at make time
4 conffile  = ${sysconfdir}/pacman.conf
5 dbpath    = ${localstatedir}/lib/pacman/
6 gpgdir    = ${sysconfdir}/pacman.d/gnupg/
7 cachedir  = ${localstatedir}/cache/pacman/pkg/
8 logfile   = ${localstatedir}/log/pacman.log
10 bin_PROGRAMS = pacman
12 DEFS = -DLOCALEDIR=\"@localedir@\" \
13        -DCONFFILE=\"$(conffile)\" \
14        -DROOTDIR=\"$(ROOTDIR)\" \
15        -DDBPATH=\"$(dbpath)\" \
16        -DGPGDIR=\"$(gpgdir)\" \
17        -DCACHEDIR=\"$(cachedir)\" \
18        -DLOGFILE=\"$(logfile)\" \
19        @DEFS@
20 INCLUDES = -I$(top_srcdir)/lib/libalpm
22 AM_CFLAGS = -pedantic -D_GNU_SOURCE
24 if USE_GIT_VERSION
25 GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//')
26 DEFS += -DGIT_VERSION=\"$(GIT_VERSION)\"
27 endif
29 pacman_SOURCES = \
30         conf.h conf.c \
31         database.c \
32         deptest.c \
33         package.h package.c \
34         pacman.h pacman.c \
35         query.c \
36         remove.c \
37         sync.c \
38         callback.h callback.c \
39         upgrade.c \
40         util.h util.c
42 LDADD = $(LTLIBINTL) $(top_builddir)/lib/libalpm/.libs/libalpm.la
44 # vim:set ts=2 sw=2 noet: