summaryrefslogtreecommitdiffstats
path: root/build
blob: 9f3a5add864d15c018c43dd52bb8e237f7ff29ee (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
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

configure:
	oh-autoconfigure
	touch $@

build: configure
	oh-autobuild -- SHLIB_LIBS='-ltinfo'
	touch $@

install: build
	oh-autoinstall
	# Put all documentation files in /usr/share/doc/libreadline.6/.
	mkdir -p dest/usr/share/doc/libreadline.6
	mv dest/usr/share/readline dest/usr/share/doc/libreadline.6/examples
	mv dest/usr/share/doc/readline/* dest/usr/share/doc/libreadline.6
	# Remove GNU Info index.
	rm -f dest/usr/share/info/dir
	oh-fixperms
	oh-strip -k
	oh-installfiles