File: rules

package info (click to toggle)
postgresql-plruby 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,500 kB
  • ctags: 1,259
  • sloc: ansic: 8,272; sql: 1,841; ruby: 882; sh: 62; makefile: 39
file content (54 lines) | stat: -rwxr-xr-x 1,155 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

PACKAGE := $(shell dh_listpackages)
PGVERSION = $(patsubst postgresql-%-plruby,%,$(PACKAGE))

DH_CLEAN_EXCLUDE = -Xtest/range/test_queries.orig -Xtest/range/test.expected.73.orig -Xtest/range/test.expected.74.orig


build: build-stamp
build-stamp:
	dh_testdir
	ruby1.8 extconf.rb --with-pgsql-include=/usr/include/postgresql/$(PGVERSION)/server --enable-shared --disable-conversion
	$(MAKE)
	touch build-stamp


clean:
	dh_testdir
	dh_testroot
	rm -f mkmf.log
	rm -f build-stamp
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean $(DH_CLEAN_EXCLUDE)


install: build
	dh_testdir
	dh_testroot
	dh_clean -k $(DH_CLEAN_EXCLUDE)
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/debian/postgresql-$(PGVERSION)-plruby sitearchdir='$$(DESTDIR)/usr/lib/postgresql/$(PGVERSION)/lib'


binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs -a Changes
	dh_installdocs -a -A plruby.html
	dh_install -a
	dh_link -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a


binary: binary-arch binary-indep


.PHONY: build clean binary-indep binary-arch binary