File: rules

package info (click to toggle)
wyrd 1.4.6-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,288 kB
  • sloc: ml: 11,059; sh: 5,531; ansic: 760; makefile: 302; python: 44
file content (21 lines) | stat: -rwxr-xr-x 531 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
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

VERSION := $(shell grep ^VERSION= Makefile.in | cut -d= -f2)

%:
	dh $@ --with ocaml

override_dh_auto_configure:
	dh_auto_configure -- --enable-utf8

override_dh_auto_build:
	echo "let version = \""$(VERSION)"\"" > version.ml
	echo "let date = \"$(SOURCE_DATE_EPOCH)\"" >> version.ml
	dh_auto_build

clean:
	find . -name '*.cm[iox]' -o -name '*.o'  | xargs rm -f
	-rm -f $(CURDIR)/debian/stamp*
	-rm -f $(CURDIR)/config.status $(CURDIR)/config.log $(CURDIR)/config.cache