File: rules

package info (click to toggle)
openldap-guide 19991007-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 128 kB
  • ctags: 13
  • sloc: makefile: 127; sh: 114; perl: 63
file content (56 lines) | stat: -rwxr-xr-x 1,483 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
#!/usr/bin/make -f

include debian/sys-build.mk

dh_mak_deps := $(shell perl debian/scripts/dh_split makedeps)
dh_gen_deps := $(shell perl debian/scripts/dh_split gendeps)

TMP     := $(shell pwd)/debian/tmp

build:

clean:
	dh_testdir
	rm -rf $(STAMP_DIR) $(SOURCE_DIR)
	perl debian/scripts/dh_split clean
	dh_clean

# Build architecture-independent files here.
binary-indep: source.make $(dh_mak_deps)
	dh_testdir -i
	dh_testroot -i
	dh_clean -i -k
	dh_testversion 2.0.49

	(test -d $(BUILD_TREE)/guide.html || mkdir $(BUILD_TREE)/guide.html) \
		&& cd $(BUILD_TREE)/guide.html && \
		sdf -2topics -I../admin -I../images ../admin/index.sdf && \
		cp ../admin/*.gif ../images/* .
	(test -d $(BUILD_TREE)/ps || mkdir $(BUILD_TREE)/ps) \
		&& cd $(BUILD_TREE)/ps && \
		sdf -2ps -I../admin -I../images ../admin/guide.sdf && \
		mv * guide.ps
	(test -d $(BUILD_TREE)/txt || mkdir $(BUILD_TREE)/txt) \
		&& cd $(BUILD_TREE)/txt && \
		sdf -2txt -I../admin -I../images ../admin/guide.sdf

	dh_installdirs -i
	install -m644  debian/local/openldap-guide debian/tmp/usr/share/doc-base/

	dh_installdocs -i $(BUILD_TREE)/LICENSE $(BUILD_TREE)/guide.html \
		$(BUILD_TREE)/ps/* $(BUILD_TREE)/txt/*
	dh_installchangelogs -i
	dh_compress -i -X.html
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch:

$(dh_mak_deps): $(dh_gen_deps)
	perl debian/scripts/dh_split

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