]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- detect lib64
authorArvin Schnell <aschnell@suse.de>
Fri, 13 Dec 2013 13:29:00 +0000 (14:29 +0100)
committerArvin Schnell <aschnell@suse.de>
Fri, 13 Dec 2013 13:29:00 +0000 (14:29 +0100)
Makefile.repo

index 9522e1c9c9e5744df0887a802f7769bb8d55d9ae..7c2f6478e8e5b2a1ef8fea09f20bbb1526276db4 100644 (file)
@@ -2,8 +2,16 @@
 # Makefile.repo for snapper
 #
 
+# somehow detect if this is a lib or lib64 system
+LIB = $(shell gcc -v 2>&1 | sed -n 's,.*--libdir=/usr/\([^ ]*\).*,\1,p')
+ifeq ($(LIB),)
+LIB = lib
+endif
+
+PREFIX = /usr
+
 configure: all
-       ./configure
+       ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB)
 
 all:
        aclocal