selection data access (YUM does not compile yet)
[platform/upstream/libzypp.git] / Makefile.cvs
1 ## ##################################################
2 ## Makefile.cvs
3 ## ##################################################
4
5 .PHONY: default init configure reconf
6
7 # Try to detect if this is a lib or lib64 system
8 LIB = $(shell gcc -v 2>&1                               \
9         | awk ' BEGIN{ lib="lib" }                      \
10                 match( $$0, "--libdir=/usr/([^ ]*)" ) { \
11                         lib=substr($$0,RSTART,RLENGTH); \
12                         sub("--libdir=/usr/","",lib)    \
13                 }                                       \
14                 END{print lib} ' )
15
16 PREFIX = /usr
17 CONFIGURE_OPTS=
18 default: configure
19
20 configure: init
21         ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB) \
22                 --disable-static \
23                 $(CONFIGURE_OPTS)
24
25 init:
26         rm -rf autom4te.cache
27         autoreconf --force --install --symlink --verbose
28
29 reconf: init
30         ./config.status --recheck
31         ./config.status