fixup Fix to build with libxml 2.12.x (fixes #505)
[platform/upstream/libzypp.git] / Makefile.cvs
1 # Generic Makefile.cvs for CMake-based projects:
2 #
3 # Create a subdirecory build/ and call cmake from there with /usr prefix.
4 #
5 # Intentionally using /usr rather than the default /usr/local since this is for
6 # internal use, and we are the distribution makers: /usr/local is off limits
7 # for us.
8 #
9 # Author: Stefan Hundhammer <sh@suse.de>
10
11 BUILD_SUBDIR            = build
12 HERE_FROM_BUILD_SUBDIR  = ..
13 PREFIX                  = /usr
14 CMAKE                   = /usr/bin/cmake
15
16 all:    cmake
17
18
19 cmake: create-build-subdir create-toplevel-makefile
20         ( cd $(BUILD_SUBDIR) && $(CMAKE) -DCMAKE_INSTALL_PREFIX=$(PREFIX) $(HERE_FROM_BUILD_SUBDIR) )
21
22
23 create-build-subdir:
24         test -d $(BUILD_SUBDIR) || mkdir $(BUILD_SUBDIR)
25
26
27 create-toplevel-makefile:
28         echo 'all:'                                              >Makefile
29         echo -e '\t$$(MAKE) $$(MAKEFLAGS) -C $(BUILD_SUBDIR)'   >>Makefile
30