File: rules

package info (click to toggle)
lua-ldoc 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 928 kB
  • sloc: makefile: 63; ansic: 56
file content (21 lines) | stat: -rwxr-xr-x 487 bytes parent folder | download
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

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
	lua5.1 ./ldoc.lua .
	mv public/ 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