File: rules

package info (click to toggle)
hevea 2.34-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,724 kB
  • sloc: ml: 19,172; sh: 495; makefile: 304; ansic: 132
file content (27 lines) | stat: -rwxr-xr-x 509 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
#!/usr/bin/make -f

DEB_DESTDIR = debian/hevea

include /usr/share/ocaml/ocamlvars.mk
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	TARGET:=opt
else
	TARGET:=byte
endif

%:
	dh $@ --with=ocaml,tex

override_dh_auto_configure:
	-rm config.sh
	$(MAKE) config.sh\
		PREFIX=/usr\
		LIBDIR=/usr/share/hevea\
		LATEXLIBDIR=/usr/share/texmf/tex/latex/misc

override_dh_auto_build:
	$(MAKE) $(TARGET)

override_dh_auto_install:
	$(MAKE) install TARGET=$(TARGET) DESTDIR=$(DEB_DESTDIR)
	-rm $(DEB_DESTDIR)/usr/share/hevea/imagen