File: rules

package info (click to toggle)
lua-ldoc 1.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 872 kB
  • sloc: ansic: 56; makefile: 55
file content (21 lines) | stat: -rwxr-xr-x 515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=lua --with lua --parallel

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/tmp/usr/bin
	cp ldoc.lua debian/tmp/usr/bin/ldoc
	chmod a+x debian/tmp/usr/bin/ldoc
	cd doc && lua5.1 ../ldoc.lua . && cd ..
	mv out/ html

override_dh_installman:
	txt2man -d "`dpkg-parsechangelog -S date`"\
	       	-v "" -r "ldoc" -t "ldoc 1" debian/ldoc.1.txt > debian/ldoc.1
	dh_installman

override_dh_auto_clean:
	rm -rf tests/doc tests/*/doc html debian/ldoc.1
	dh_auto_clean