Pulleyback: add commit() and rollback() to instance methods.
[steamworks] / Makefile
1 # Copyright (c) 2014, 2015 InternetWide.org and the ARPA2.net project
2 # All rights reserved.
3 #
4 # See the LICENSE file for details.
5 #
6 # Top-level bogus makefile for the Steamworks project. The real
7 # build-system is CMake. This makefile just arranges for an out-
8 # of-source build in a new subdirectory.
9 #
10 PREFIX ?= /usr/local
11 PULLEY_SQUEAL_DIR ?= /var/db/pulley/
12 PULLEY_BACKEND_DIR ?= $(PREFIX)/share/steamworks/pulleyback/
13
14 # Set CMAKE_ARGS to influence the configuration. Here
15 # are some examples, with the default settings assigned.
16 # Take care that *_DIR variables must have a trailing / .
17 #
18 CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX)
19 CMAKE_ARGS += -DPULLEY_SQUEAL_DIR=$(PULLEY_SQUEAL_DIR)
20 CMAKE_ARGS += -DPULLEY_BACKEND_DIR=$(PULLEY_BACKEND_DIR)
21
22 all: build
23
24 check-build:
25         test -d build/ || mkdir build
26         test -d build
27
28 check-cmake: check-build
29         test -f build/Makefile || ( cd build ; cmake $(CMAKE_ARGS) ../src )
30         test -f build/Makefile
31
32 build: check-cmake
33         ( cd build ; $(MAKE) )
34
35 install: build
36         ( cd build ; $(MAKE) install PREFIX=$PREFIX )
37
38 clean:
39         rm -rf build
40