File: rules

package info (click to toggle)
ocaml-tools 20090719-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 216 kB
  • ctags: 92
  • sloc: makefile: 228
file content (57 lines) | stat: -rwxr-xr-x 1,134 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
#!/usr/bin/make -f
# debian/rules for ocaml-tools

DESTDIR := $(CURDIR)/debian/ocaml-tools

# top level dir for documentation
DOCDIR = /usr/share/doc/ocaml-tools

# share dir where files are to be installed
SHDIR = /usr/share/ocaml-tools

VIMDIR = /usr/share/vim/addons

# omlet source dir
OMLETSRC = $(shell echo omlet-*)

build:
	$(MAKE) -C ocaml-autoconf/
	cp ocaml-autoconf/README ocaml-autoconf/README.ocaml-autoconf
	cd omlet-* && (cp README README.omlet ; cp ChangeLog changelog.omlet)

clean: 
	dh_testdir
	dh_testroot
	$(MAKE) -C ocaml-autoconf/ clean
	rm -f ocaml-autoconf/README.ocaml-autoconf
	rm -f omlet-*/README.omlet omlet-*/changelog.omlet
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	BASE=$(DESTDIR)/$(VIMDIR) make -C $(OMLETSRC) install-aux

binary-arch: build install

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

binary: binary-arch binary-indep

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