File: rules

package info (click to toggle)
facile 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 644 kB
  • sloc: ml: 6,874; makefile: 131; sh: 21
file content (27 lines) | stat: -rwxr-xr-x 660 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
25
26
27
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

FACILEDIR := $(shell ocamlc -where)/facile
VERSION := $(shell head -n1 debian/changelog | awk -F'[ ()-]+' '{print $$2}')

%:
	dh $@ --with ocaml

override_dh_auto_configure:
	./configure --faciledir debian/libfacile-ocaml-dev/$(FACILEDIR)
	sed 's/@VERSION@/$(VERSION)/' debian/META.in > $(CURDIR)/META

override_dh_auto_build:
	$(MAKE) OCAMLC="ocamlc -g" OCAMLMLI=ocamlc

override_dh_auto_install:
	mkdir -p debian/libfacile-ocaml-dev/$(FACILEDIR)
	dh_auto_install

override_dh_auto_clean:
	$(MAKE) -C src clean
	rm -f META
	# not cleaned upstream
	rm -f config_Makefile
	$(MAKE) -k -C examples clean