File: tools.mk

package info (click to toggle)
pg-auto-failover 2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,368 kB
  • sloc: ansic: 58,369; python: 5,515; sql: 3,177; makefile: 629; sh: 35
file content (27 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (2)
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
#
# Install CI tools, mostly Citus style checker and linter for C code.
#
# See https://github.com/citusdata/citus/blob/main/STYLEGUIDE.md
#

CITUS_TOOLS = https://github.com/citusdata/tools.git
UNCRUSTIFY = https://github.com/uncrustify/uncrustify/archive/uncrustify-0.68.1.tar.gz
UNCRUSTIFY_DIR = uncrustify-uncrustify-0.68.1

CMAKE_OPTS = -DCMAKE_POLICY_VERSION_MINIMUM=3.5

tools: citus-tools ;

mkdir:
	mkdir tools

uncrustify: mkdir
	curl -L $(UNCRUSTIFY) | tar -C tools -xz
	mkdir tools/$(UNCRUSTIFY_DIR)/build
	cd tools/$(UNCRUSTIFY_DIR)/build && cmake $(CMAKE_OPTS) ..
	make -C tools/$(UNCRUSTIFY_DIR)/build -j5
	sudo make -C tools/$(UNCRUSTIFY_DIR)/build install

citus-tools: uncrustify
	git clone --depth 1 $(CITUS_TOOLS) tools/tools
	sudo make -C tools/tools uncrustify/.install