File: rules

package info (click to toggle)
wyrd 1.4.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,288 kB
  • sloc: ml: 11,059; sh: 5,531; ansic: 760; makefile: 301; python: 44
file content (19 lines) | stat: -rwxr-xr-x 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

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