File: rules

package info (click to toggle)
facile 1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 620 kB
  • ctags: 1,678
  • sloc: ml: 6,848; sh: 160; makefile: 117
file content (25 lines) | stat: -rwxr-xr-x 824 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/dpatch.mk
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::
	# not cleaned upstream
	rm -f config_Makefile
	$(DEB_MAKE_INVOKE) -k -C examples clean