Mailinglist Archive: zypp-devel (149 mails)

< Previous Next >
[zypp-devel] building libzypp with prefix != /usr
  • From: "Jan-Simon Möller" <dl9pf@xxxxxx>
  • Date: Thu, 4 Sep 2008 00:07:29 +0200
  • Message-id: <200809040007.29354.dl9pf@xxxxxx>
Here's what i use for that ...
autodetections seems broken here.

best regards
Jan-Simon
# Generic Makefile.cvs for CMake-based projects:
#
# Create a subdirecory build/ and call cmake from there with /usr prefix.
#
# Intentionally using /usr rather than the default /usr/local since this is for
# internal use, and we are the distribution makers: /usr/local is off limits
# for us.
#
# Author: Stefan Hundhammer <sh@xxxxxxx>

BUILD_SUBDIR = build
HERE_FROM_BUILD_SUBDIR = ..
PREFIX = /home/dl9pf/pfx/
CMAKE = /usr/bin/cmake

all: cmake


cmake: create-build-subdir create-toplevel-makefile
( cd $(BUILD_SUBDIR) && $(CMAKE)
-DSATSOLVER_INCLUDE_DIR=/home/dl9pf/pfx/include/
-DSATSOLVER_LIB_DIR=/home/dl9pf/pfx/lib/ -DCMAKE_INSTALL_PREFIX=$(PREFIX)
$(HERE_FROM_BUILD_SUBDIR) )


create-build-subdir:
test -d $(BUILD_SUBDIR) || mkdir $(BUILD_SUBDIR)


create-toplevel-makefile:
echo 'all:' >Makefile
echo -e '\t$$(MAKE) $$(MAKEFLAGS) -C $(BUILD_SUBDIR)' >>Makefile

< Previous Next >
This Thread
  • No further messages