Debian Codegraph @

Makefile

raw symbols SCIP
1 # Allow to override settings
2 CONFIG ?= Makefile.local
3 -include $(CONFIG)
4
5 Q ?= @
6 UPDATEDIR := /tmp
7 BUILDTYPE ?= Debug
8 BUILDDIR ?= ./build/$(BUILDTYPE)
9 INSTALL_DIR ?= $(BUILDDIR)
10 GENERATOR := Ninja
11 CMAKE ?= cmake
12 CMAKE_OPTIONS ?= -DFORCE_USE_SYSTEM_LIBS=1 -DCMAKE_BUILD_TYPE=$(BUILDTYPE) -G$(GENERATOR) --graphviz=$(BUILDDIR)/deps.dot
13
14 all:
15 $(Q)if [ ! -f $(BUILDDIR)/CMakeCache.txt ]; then $(CMAKE) -H$(CURDIR) -B$(BUILDDIR) $(CMAKE_OPTIONS); fi
16 $(Q)$(CMAKE) --build $(BUILDDIR) --target $@
17 $(Q)$(CMAKE) -E create_symlink build/Debug/compile_commands.json compile_commands.json
18
19 release:
20 $(Q)$(MAKE) BUILDTYPE=Release
21
22 clean:
23 $(Q)rm -rf $(BUILDDIR)
24
25 distclean:
26 $(Q)git clean -fdx
27
28 ccmake:
29 $(Q)ccmake -B$(BUILDDIR) -S.
30
31 release-%:
32 $(Q)$(MAKE) BUILDTYPE=Release $(subst release-,,$@)
33
34 %:
35 $(Q)if [ ! -f $(BUILDDIR)/CMakeCache.txt ]; then $(CMAKE) -H$(CURDIR) -B$(BUILDDIR) $(CMAKE_OPTIONS); fi
36 $(Q)$(CMAKE) --build $(BUILDDIR) --target $@
37 $(Q)$(CMAKE) --install $(BUILDDIR) --component $@ --prefix $(INSTALL_DIR)/install-$@
38 $(Q)$(CMAKE) -E create_symlink $(BUILDDIR)/compile_commands.json compile_commands.json
39
40 dependency-%:
41 $(Q)$(CMAKE) -H$(CURDIR) -B$(BUILDDIR) $(CMAKE_OPTIONS)
42 $(Q)dot -Tsvg $(BUILDDIR)/deps.dot.$(subst dependency-,,$@) -o $(BUILDDIR)/deps.dot.$(subst dependency-,,$@).svg;
43 $(Q)xdg-open $(BUILDDIR)/deps.dot.$(subst dependency-,,$@).svg;
44
45 caveexpress-pngquant:
46 $(Q)pngquant -f --ext .png contrib/assets/png/caveexpress/*.png
47
48 caveexpress-textures: textureatlas
49 ./textureatlas contrib/assets/png/caveexpress*.tps