File: rules

package info (click to toggle)
eli-doc 4.4.0-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,256 kB
  • ctags: 4,583
  • sloc: makefile: 42
file content (58 lines) | stat: -rwxr-xr-x 1,113 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

INSTALL		=	install
INSTALL_DATA	=	$(INSTALL) -p -m 644 -o root -g root

build: build-indep

build-indep: build-stamp

build-stamp: 
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	dh_clean

DOCDIR	=	$(CURDIR)/debian/eli-doc/usr/share/doc/eli-doc/

install: build-indep
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	for html in *.html gifs/*.gif; do \
		echo install html/$$html; \
		$(INSTALL_DATA) $$html $(DOCDIR)/html/$$html; \
	done
	for ps in *.ps; do \
		echo install html/$$ps; \
		$(INSTALL_DATA) $$ps $(DOCDIR)/html/$$ps; \
		echo make symlink ps/$$ps; \
		(cd $(DOCDIR)/ps && ln -s ../html/$$ps); \
	done

# Build architecture-independent files here.
binary-indep: build-indep install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs 
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:

binary: binary-indep binary-arch

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