File: rules

package info (click to toggle)
snacc 1.3bbn-10
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 5,500 kB
  • ctags: 4,134
  • sloc: ansic: 35,869; sh: 7,050; cpp: 4,380; yacc: 2,215; lex: 517; makefile: 258; sed: 4
file content (32 lines) | stat: -rwxr-xr-x 1,092 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
#!/usr/bin/make -f

DEB_DH_ALWAYS_EXCLUDE=.svn
DEB_INSTALL_DOCS_snacc-doc=doc/snacc-a5.ps
DEB_INSTALL_EXAMPLES_libsnacc-dev=c++-examples c-examples tbl-example
DEB_INSTALL_MANPAGES_snacc=debian/berdecode.1 debian/snacc-config.1

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk

DB2MAN=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

post-patches::
	mkdir -p c-lib/Cebuf c-lib/ebuf c-lib/mbuf c-lib/sbuf c-lib/tbl \
		 c++-lib/c++
	AUTOMAKE=automake-1.7 ACLOCAL=aclocal-1.7 autoreconf -fi

build/snacc::
	cd debian; xsltproc --nonet --novalid $(DB2MAN) berdecode.dbk
	cd debian; xsltproc --nonet --novalid $(DB2MAN) snacc-config.dbk

install/snacc::
	rm -rf $(CURDIR)/debian/snacc/usr/share/doc/snacc-doc/

binary-post-install/snacc::
	rm -f $(CURDIR)/debian/snacc/usr/share/man/man1/snacced.1*

clean::
	rm -rf c-lib/Cebuf c-lib/ebuf c-lib/mbuf c-lib/sbuf c-lib/tbl \
	       c++-lib/c++ c++-lib/tcl/*.C c++-lib/tcl/tkAppInit.c    \
	       config.log config.status depcomp