File: rules

package info (click to toggle)
lua-posix 36.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,720 kB
  • sloc: ansic: 5,462; makefile: 21; sh: 6
file content (29 lines) | stat: -rwxr-xr-x 826 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
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
VERSION = $(shell dpkg-parsechangelog | grep ^Ver | cut -d ' ' -f 2 | cut -d '-' -f 1)

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

override_dh_auto_clean:
	rm -rf 5.*-posix*
	rm -f debian/lua-posix*.install
	rm -f debian/lua_versions
	rm -rf debian/.dh_lua-libtool
	rm -rf debian/trash
	rm -f debian/*.dh-lua.conf
	rm -f lib/posix/version.lua
	dh_auto_clean

override_dh_auto_configure:
	cp -f debian/lua-posix.install.in debian/lua-posix.install
	cp -f debian/lua-posix-dev.install.in debian/lua-posix-dev.install
	lua debian/gen-configs $(VERSION) $(DEB_HOST_ARCH)
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build
	#ldoc -c build-aux/config.ld ext/posix/

.PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_auto_build