File: rules

package info (click to toggle)
ocamlweb 1.41-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 800 kB
  • sloc: ml: 5,771; sh: 1,756; makefile: 214
file content (23 lines) | stat: -rwxr-xr-x 555 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
#!/usr/bin/make -f

DEB_DESTDIR=$(CURDIR)/debian/ocamlweb
BUILD_DATE=$(shell dpkg-parsechangelog --show-field Date)

%:
	dh $@ --with ocaml,tex

# test target is currently broken
override_dh_auto_test:

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

# we have decided to build this package as bytecode
override_dh_auto_build:
	$(MAKE) byte BUILD_DATE="$(BUILD_DATE)"

# UPDATETEX: executed after installation of tex files
override_dh_auto_install:
	$(MAKE) install-byte UPDATETEX=true