Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # In order to generated colourised HTML for the libghc-hscolour-doc package
4 # we need a special hack because the colour docs are generated by an executable
5 # create by this package and we don't want this package to depend on itself.
6
7 pwd := $(shell pwd)
8
9 # Modify the GHC configure parameters to point to a local version of
10 # HsColour.
11 export DEB_SETUP_GHC_CONFIGURE_ARGS += --with-hscolour=$(pwd)/hscolour-wrapper
12
13 # Generate a fake version of the executable (a trivial shell script) which is
14 # available at configure time. This shell script will exec the real HsColour
15 # executable if it can be found. If it can't be found it will give a sensible
16 # result for a version request (which is enough to fool haddock) and exit with
17 # an error for anything else.
18 hscolour-wrapper : debian/hscolour-wrapper
19 cp $+ $@
20 chmod u+x $@
21
22 # Force generation of the wrapper script.
23 execute_before_dh_auto_configure: hscolour-wrapper
24
25 %:
26 dh $@