File: rules

package info (click to toggle)
alt-ergo 1.30-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,996 kB
  • sloc: ml: 26,089; makefile: 16; sh: 12
file content (23 lines) | stat: -rwxr-xr-x 476 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
# -*- makefile -*-

#export DH_VERBOSE=1

LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")

include /usr/share/ocaml/ocamlvars.mk

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

override_dh_auto_install:
	$(MAKE) DESTDIR=debian/tmp install install-gui

override_dh_auto_clean:
	if [ -f config.status ]; then \
		$(MAKE) dist-clean;   \
	fi

%:
	dh  $@ --with ocaml