File: rules

package info (click to toggle)
facile 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 656 kB
  • ctags: 1,283
  • sloc: ml: 6,848; makefile: 127; sh: 21
file content (25 lines) | stat: -rwxr-xr-x 794 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/ocaml.mk

FACILEDIR := $(shell ocamlc -where)/facile
VERSION := $(shell head -n1 debian/changelog | awk -F'[ ()-]+' '{print $$2}')
DEB_INSTALL_DIRS_ALL += $(FACILEDIR)
DEB_MAKE_INVOKE += OCAMLC="ocamlc -g" OCAMLMLI=ocamlc
DEB_MAKE_INSTALL_TARGET := install
DEB_MAKE_CHECK_TARGET := check

common-configure-arch common-configure-indep:: common-configure-impl
common-configure-impl:: config_Makefile
config_Makefile:
	./configure --faciledir debian/libfacile-ocaml-dev/$(FACILEDIR)
	sed 's/@VERSION@/$(VERSION)/' debian/META.in > $(CURDIR)/META

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