File: rules

package info (click to toggle)
ragel 6.10-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 4,740 kB
  • sloc: cpp: 47,127; ansic: 5,143; sh: 1,905; makefile: 223; ruby: 189
file content (66 lines) | stat: -rwxr-xr-x 1,541 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
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f

CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

# for the m68k hack
DEB_BUILD_ARCH?=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
export DEB_BUILD_ARCH

config.status: configure
	dh_testdir
	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man 

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp

build-stamp:  config.status
	dh_testdir
	$(MAKE) all 
	$(MAKE) -C doc 
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp 
	[ ! -f Makefile ] || $(MAKE) distclean
	[ ! -f test/Makefile ] || $(MAKE) -C test distclean
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/debian/ragel/ 
	dh_install ragel.vim /usr/share/vim/addons/syntax/
	dh_install debian/ragel.yaml /usr/share/vim/registry/
	make -C $(CURDIR)/examples distclean

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installman 
	dh_installdocs -n
	dh_installdocs -n doc/ragel-guide.pdf
	dh_installexamples
	dh_installchangelogs ChangeLog
	rm $(CURDIR)/debian/ragel/usr/share/doc/ragel/changelog
	mv $(CURDIR)/debian/ragel/usr/share/doc/ragel/ChangeLog \
		$(CURDIR)/debian/ragel/usr/share/doc/ragel/changelog
	dh_compress -Xexamples
	dh_link
	dh_strip
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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