File: rules | Debian Sources

File: rules

package info (click to toggle)
postgresql-pllua 1%3A2.0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,216 kB
  • sloc: ansic: 14,415; sql: 2,193; makefile: 170; sh: 59; javascript: 38
file content (31 lines) | stat: -rwxr-xr-x 820 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
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

export LUA_INCDIR = /usr/include/lua5.3
export LUALIB = -llua5.3
export LUAC = luac5.3
export LUA = lua5.3

# work around 'ld -b binary' producing mips1 code
# https://buildd.debian.org/status/fetch.php?pkg=postgresql-pllua&arch=mips64el&ver=1%3A2.0~beta1-1&stamp=1530805328&raw=0
ifeq ($(shell dpkg --print-architecture), mips64el)
export BIN_ARCH = mips:isa64r2
export BIN_FMT = elf64-tradlittlemips
endif

override_dh_auto_clean:
	$(MAKE) clean
	$(MAKE) -C hstore clean

override_dh_auto_install:
	+pg_buildext loop postgresql-%v-pllua
	+pg_buildext loop hstore postgresql-%v-pllua

override_dh_installdocs:
	dh_installdocs --all README.md

override_dh_pgxs_test:
	pg_buildext installcheck . . postgresql-%v-pllua
	pg_buildext installcheck . hstore postgresql-%v-pllua

%:
	dh $@ --with pgxs_loop