File: rules

package info (click to toggle)
pagodacf 0.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,788 kB
  • sloc: ml: 8,458; ansic: 3,339; makefile: 141
file content (35 lines) | stat: -rwxr-xr-x 779 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
#!/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

include /usr/share/ocaml/ocamlvars.mk

TMPDIR=debian/tmp
DESTDIR=$(TMPDIR)/$(OCAML_STDLIB_DIR)

%:
	dh $@ --with ocaml

override_dh_auto_build:
	if ! test -f .depend.org; then cp .depend .depend.org; fi
	$(MAKE) depend
	$(MAKE) DEBUG_OPT="-g" default
ifneq ($(OCAML_OPT_ARCH),)
	$(MAKE) opt
endif
	$(MAKE) doc
	mv doc html

override_dh_auto_clean:
	$(MAKE) clean
	-$(RM) -f .DS_Store
	if test -f .depend.org; then mv .depend.org .depend; fi
	-$(RM) -rf $(TMPDIR) doc html

override_dh_auto_install:
	mkdir -p $(DESTDIR)
	$(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore