forked from openSUSE/libzypp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.cvs
More file actions
30 lines (21 loc) · 787 Bytes
/
Makefile.cvs
File metadata and controls
30 lines (21 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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 <[email protected]>
BUILD_SUBDIR = build
HERE_FROM_BUILD_SUBDIR = ..
PREFIX = /usr
CMAKE = /usr/bin/cmake
all: cmake
cmake: create-build-subdir create-toplevel-makefile
( cd $(BUILD_SUBDIR) && $(CMAKE) -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