1 # Copyright (c) 2014, 2015 InternetWide.org and the ARPA2.net project
4 # See the LICENSE file for details.
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.
11 PULLEY_SQUEAL_DIR ?= /var/db/pulley/
12 PULLEY_BACKEND_DIR ?= $(PREFIX)/share/steamworks/pulleyback/
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 / .
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)
25 test -d build/ || mkdir build
28 check-cmake: check-build
29 test -f build/Makefile || ( cd build ; cmake $(CMAKE_ARGS) ../src )
30 test -f build/Makefile
33 ( cd build ; $(MAKE) )
36 ( cd build ; $(MAKE) install PREFIX=$PREFIX )