File: rules

package info (click to toggle)
videolan-doc 20060711-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,656 kB
  • ctags: 34
  • sloc: xml: 39,118; sh: 256; makefile: 191; php: 6
file content (73 lines) | stat: -rwxr-xr-x 2,039 bytes parent folder | download | duplicates (2)
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
67
68
69
70
71
72
73
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

configure: configure-stamp
configure-stamp:
	dh_testdir
	touch configure-stamp

build: build-stamp

build-stamp: configure-stamp 
	dh_testdir
	$(MAKE) -f debian/Makefile
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	-$(MAKE) clean -f debian/Makefile
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs usr/share/doc/videolan-doc
	cp `find doc -name '*.pdf' -o -name '*.txt'` debian/videolan-doc/usr/share/doc/videolan-doc/
	find doc -name '*.zip' -o -name '*.rtf' -o -name '.htaccess' -o -name '.cvsignore' | xargs rm -f
	cp -r doc debian/videolan-doc/usr/share/doc/videolan-doc/html
	-rm -f debian/videolan-doc/usr/share/doc/videolan-doc/html/*/*
	find debian/videolan-doc/usr/share/doc/videolan-doc/html -name '*.pdf' -o -name '*.txt' -o -name '*.inc' | xargs rm -f
	find debian/videolan-doc/usr/share/doc/videolan-doc/html -name 'src' -o -name 'Makefile' | xargs rm -Rf
	cd debian/videolan-doc/usr/share/doc/videolan-doc/html && rm -Rf AUTHORS common index.html videolan-quickstart
	mkdir -p debian/videolan-doc/usr/share/doc/videolan-doc/images
	cp -r images/documentation debian/videolan-doc/usr/share/doc/videolan-doc/images/documentation
	cd debian/videolan-doc/usr/share/doc/videolan-doc/images/documentation && rm -f *.dia *.eps

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_installexamples
	dh_installman
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

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