...
[iramuteq] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12
13
14
15
16 configure: configure-stamp
17 configure-stamp:
18         dh_testdir
19         # Add here commands to configure the package.
20
21         touch configure-stamp
22
23
24 build: build-stamp
25
26 build-stamp: configure-stamp  
27         dh_testdir
28
29         # Add here commands to compile the package.
30         #$(MAKE)
31         #docbook-to-man debian/iramuteq.sgml > iramuteq.1
32
33         touch build-stamp
34
35 clean: 
36         dh_testdir
37         dh_testroot
38         rm -f build-stamp configure-stamp
39
40         # Add here commands to clean up after the build process.
41         #$(MAKE) clean
42
43         dh_clean 
44
45 install: build
46         dh_testdir
47         dh_testroot
48         dh_clean -k 
49         dh_installdirs
50
51         # Add here commands to install the package into debian/iramuteq.
52         #$(MAKE) DESTDIR=$(CURDIR)/debian/iramuteq install
53         mkdir -p $(CURDIR)/debian/iramuteq
54         cp iramuteq $(CURDIR)/debian/iramuteq/usr/bin/iramuteq
55         cp *.py $(CURDIR)/debian/iramuteq/usr/share/iramuteq
56         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/dictionnaires
57         cp dictionnaires/* $(CURDIR)/debian/iramuteq/usr/share/iramuteq/dictionnaires
58         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/Rscripts
59         cp Rscripts/* $(CURDIR)/debian/iramuteq/usr/share/iramuteq/Rscripts
60         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/images
61         cp images/* $(CURDIR)/debian/iramuteq/usr/share/iramuteq/images
62         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/configuration
63         cp configuration/* $(CURDIR)/debian/iramuteq/usr/share/iramuteq/configuration
64         cp iramuteq.desktop $(CURDIR)/debian/iramuteq/usr/share/applications
65         cp images/iraicone.png $(CURDIR)/debian/iramuteq/usr/share/icons
66         cp son_fin.wav $(CURDIR)/debian/iramuteq/usr/share/iramuteq
67         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale
68         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale/en
69         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale/en/LC_MESSAGES
70         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale/fr_FR
71         mkdir -p $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale/fr_FR/LC_MESSAGES
72         cp locale/en/LC_MESSAGES/iramuteq.mo $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale/en/LC_MESSAGES
73         cp locale/fr_FR/LC_MESSAGES/iramuteq.mo $(CURDIR)/debian/iramuteq/usr/share/iramuteq/locale/fr_FR/LC_MESSAGES
74
75
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # We have nothing to do by default.
79
80 # Build architecture-dependent files here.
81 binary-arch: build install
82         dh_testdir
83         dh_testroot
84         dh_installchangelogs 
85         dh_installdocs
86         dh_installexamples
87 #       dh_install
88 #       dh_installmenu
89 #       dh_installdebconf       
90 #       dh_installlogrotate
91 #       dh_installemacsen
92 #       dh_installpam
93 #       dh_installmime
94 #       dh_python
95 #       dh_installinit
96 #       dh_installcron
97 #       dh_installinfo
98         dh_installman
99         dh_link
100         dh_strip
101         dh_compress
102         dh_fixperms
103 #       dh_perl
104 #       dh_makeshlibs
105         dh_installdeb
106         dh_shlibdeps
107         dh_gencontrol
108         dh_md5sums
109         dh_builddeb
110
111 binary: binary-indep binary-arch
112 .PHONY: build clean binary-indep binary-arch binary install configure