File: rules

package info (click to toggle)
bibtex2html 1.99-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ml: 6,334; makefile: 714; perl: 50; sh: 15
file content (26 lines) | stat: -rwxr-xr-x 484 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
#!/usr/bin/make -f

DESTDIR=$(CURDIR)/debian/bibtex2html
include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml

override_dh_auto_configure:
	./configure --bindir=$(DESTDIR)/usr/bin\
			--prefix=$(DESTDIR)/usr/share\
			--mandir=$(DESTDIR)/usr/share/man

override_dh_auto_build:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	$(MAKE) opt manual.html
else
	$(MAKE) byte manual.html
endif

override_dh_auto_test:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	$(MAKE) test
else
	$(MAKE) test-byte
endif