File: rules

package info (click to toggle)
wyrd 1.4.6-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,820 kB
  • ctags: 1,969
  • sloc: ml: 11,059; sh: 5,531; ansic: 760; makefile: 304; python: 44
file content (24 lines) | stat: -rwxr-xr-x 666 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
24
#!/usr/bin/make -f

VERSION := $(shell grep ^VERSION= Makefile.in | cut -d= -f2)
BUILD_DATE := $(shell dpkg-parsechangelog | sed -n -e 's/^Date: //p')

%:
	dh $@ --with autotools_dev,ocaml

override_dh_auto_configure:
	dh_auto_configure -- --enable-utf8

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

override_dh_auto_install:
	dh_auto_install
	#rm $(CURDIR)/debian/wyrd/usr/share/doc/wyrd/README

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