File: rules

package info (click to toggle)
ocamlweb 1.41-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 824 kB
  • sloc: ml: 5,772; sh: 1,756; makefile: 214
file content (22 lines) | stat: -rwxr-xr-x 493 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
#!/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

override_dh_auto_build:
	$(MAKE) BUILD_DATE="$(BUILD_DATE)"

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