File: rules

package info (click to toggle)
source-highlight 3.1.7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,332 kB
  • ctags: 5,233
  • sloc: sh: 11,270; cpp: 10,206; ansic: 9,515; makefile: 1,865; lex: 1,200; yacc: 1,021; php: 213; perl: 211; awk: 98; erlang: 94; lisp: 90; java: 75; ruby: 69; python: 61; asm: 43; ml: 38; ada: 36; haskell: 27; xml: 23; cs: 11; sql: 8; tcl: 6; sed: 4
file content (48 lines) | stat: -rwxr-xr-x 1,168 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
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk

config.status: configure
	dh_testdir
	aclocal-1.11 -I m4 -I gl/m4
	automake-1.11
	dh_autotools-dev_updateconfig
	dh_auto_configure -- \
		--enable-warnings \
		--with-boost-regex=boost_regex

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: config.status
	dh_testdir
	dh_auto_build
	dh_auto_test
	touch $@

clean:
	dh_testdir
	dh_testroot
	dh_auto_clean
	dh_autotools-dev_restoreconfig
	rm -f `find -name Makefile.in`
	rm -f aclocal.m4
	dh_clean

DESTDIR=$(CURDIR)/debian/tmp

override_dh_install:
	rm $(DESTDIR)/usr/share/doc/source-highlight/INSTALL*
	rm $(DESTDIR)/usr/share/doc/source-highlight/COPYING*
	rm $(DESTDIR)/usr/bin/cpp2html
	rm $(DESTDIR)/usr/bin/java2html
	mv $(DESTDIR)/usr/bin/src-hilite-lesspipe.sh $(DESTDIR)/usr/share/source-highlight/
	rm -f $(DESTDIR)/usr/share/info/dir*
	rm $(DESTDIR)/usr/share/doc/source-highlight/ChangeLog*
	dh_install --fail-missing -Xlibsource-highlight.la

install binary-indep binary-arch binary:
	dh $@

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