Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 export DH_VERBOSE=1
7
8 %:
9 dh $@ --with autoreconf
10
11 override_dh_auto_configure:
12 dh_auto_configure -- --includedir=/usr/include/cfortran/
13
14 override_dh_auto_clean:
15 dh_auto_clean
16 rm -rf examples
17
18 override_dh_auto_build:
19 cp -r eg examples
20 dh_auto_build
21
22 override_dh_installexamples:
23 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
24 rm -f examples/Makefile*
25 dh_installexamples
26 find $(CURDIR)/debian/cfortran/usr/share/doc/cfortran/examples/ -name '*.c' -exec \
27 sed -i 's,include "cfortran.h",include <cfortran/cfortran.h>,g' {} \;
28 find $(CURDIR)/debian/cfortran/usr/share/doc/cfortran/examples/ -empty -type d -delete
29 else
30 @echo '**********************************************************'
31 @echo 'Skip example '
32 @echo '**********************************************************'
33 endif
34
35 override_dh_installdocs:
36 dh_installdocs
37 mv $(CURDIR)/debian/cfortran/usr/share/doc/cfortran/index.htm $(CURDIR)/debian/cfortran/usr/share/doc/cfortran/index.html
38
39 override_dh_compress:
40 dh_compress -Xexamples