~ubuntu-branches/ubuntu/intrepid/facile/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Steffen Joeris
  • Date: 2005-11-22 19:18:05 UTC
  • Revision ID: james.westby@ubuntu.com-20051122191805-y6gbff6ba36yemhe
Tags: 1.1-2
Adapt patch to upstream Makefile to not try to build the native library
when ocamlopt isn't available (Closes: #340305).
Thanks to Julien Cristau

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
include /usr/share/cdbs/1/class/autotools.mk
 
4
include /usr/share/cdbs/1/rules/debhelper.mk
 
5
 
 
6
DEB_CONFIGURE_NORMAL_ARGS = --faciledir debian/libfacile-ocaml-dev/`ocamlc -where`/facile
 
7
DEB_MAKE_BUILD_TARGET=OCAMLC="ocamlc -g" OCAMLMLI=ocamlc
 
8
exclude=--disable-maintainer-mode
 
9
DEB_CONFIGURE_INVOKE:=$(filter-out $(exclude),$(DEB_CONFIGURE_INVOKE))
 
10
OCAMLABI = ${shell ocamlc -version}
 
11
DEB_DH_GENCONTROL_ARGS=-- -VF:OCamlABI="$(OCAMLABI)"
 
12
 
 
13
ocamlinit::
 
14
        sed -e 's%#OcamlABI#%$(OCAMLABI)%' debian/control.in >debian/control
 
15
 
 
16
debian/libfacile-ocaml-dev.dirs:
 
17
        sed -e 's%#OcamlABI#%$(OCAMLABI)%' $@.in >$@
 
18
 
 
19
common-configure-arch::  
 
20
        echo FACILEDIR=debian/libfacile-ocaml-dev/`ocamlc -where`/facile >config_Makefile
 
21
        dpatch apply-all
 
22
        
 
23
clean::
 
24
        make clean
 
25
        rm -f config_Makefile
 
26
        dpatch deapply-all
 
27
        rm -rf debian/patched