summaryrefslogtreecommitdiffstats
path: root/build
blob: a4e497d73d9011dd81a5b8d1a27a781e6be50649 (plain)
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
30
#!/usr/bin/make -f

# For 3.0.2:
source_sha256sum = 6b4ea61eadbbd9bec0ccb383c29d1f4496eacc121ef7acf37c7a24777805693e

include ../source.mk

nop:
	@:

build:
	mkdir -p src/Build
	cd src/Build && ../bootstrap --verbose --system-libs \
		--prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man
	oh-autobuild -B src/Build
	HOME="$${PWD}/src/Build" oh-autotest -B src/Build -- \
		ARGS='--output-on-failure -E CTestTestUpload'
	touch $@

install: build
	#oh-autoinstall -B src/Build
	# We don't need Bash completions.
	rm dest/usr/share/cmake-3.0/completions/*
	# We don't need Emacs Lisp and Vimscript files.
	rm dest/usr/share/cmake-3.0/editors/*/*
	# We provide copyright information ourselves.
	find dest/usr/share/doc/cmake -name Copyright.txt -exec rm '{}' ';'
	oh-fixperms
	oh-strip
	oh-installfiles