]> git.donarmstrong.com Git - neurodebian.git/blob - debian/rules
recommend ubuntu-keyring (backported) and moved python into recommends
[neurodebian.git] / debian / rules
1 #!/usr/bin/make -f
2
3 ICONS_SIZE=32
4
5 # one ring to rule them all ...
6 %:
7         dh $@
8
9 override_dh_auto_configure:
10
11 override_dh_auto_build::
12         # wallpaper
13         [ ! -d build/wallpaper ] && mkdir -p build/wallpaper
14         xcf2png -o build/wallpaper/neurodebian.png artwork/wallpaper_hotbrain.xcf
15         # icons
16         [ ! -d build/icons ] && mkdir -p build/icons
17         inkscape artwork/icon.svg -w $(ICONS_SIZE) -h $(ICONS_SIZE) \
18                 -e build/icons/neurodebian.png
19         for d in electrophysiology psychophysics; do \
20                 inkscape artwork/$$d.svg -w $(ICONS_SIZE) -h $(ICONS_SIZE) \
21                         -e build/icons/neurodebian-$$d.png; done
22         cp artwork/icon.svg build/icons/neurodebian.svg
23         convert -geometry $(ICONS_SIZE)x$(ICONS_SIZE) artwork/mri.png build/icons/neurodebian-imaging.png
24         # manpages
25         [ ! -d build/man ] && mkdir -p build/man
26         help2man -h '--verbose-help' --no-info tools/backport-dsc \
27                 -n "backport Debian source packages" > build/man/backport-dsc.1
28         help2man --no-info tools/nd-autoinstall \
29                 -n "install (if necessary) and run an application" > build/man/nd-autoinstall.1
30
31 override_dh_auto_install::
32
33 override_dh_auto_test::
34
35 override_dh_clean:
36         dh_clean
37         $(MAKE) -C artwork clean