backup
[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
18 default: configure
19
20 configure: init
21         ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB)
22
23 init:
24         rm -rf autom4te.cache
25         autoreconf --force --install --symlink --verbose
26
27 reconf: init
28         ./config.status --recheck
29         ./config.status