commitando os sources pra gerar o pacote debian
[remotepc] / deb-package / server / notes / rules
1 #!/usr/bin/make -f
2
3 configure: configure-stamp
4 configure-stamp:
5         dh_testdir
6         # Add here commands to configure the package.
7
8         touch configure-stamp
9
10
11 build: build-stamp
12
13 build-stamp: configure-stamp 
14         dh_testdir
15
16         # Add here commands to compile the package.
17         ##$(MAKE)
18         #docbook-to-man debian/pcremote-server.sgml > pcremote-server.1
19
20         touch build-stamp
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp configure-stamp
26         dh_clean
27
28         # Add here commands to clean up after the build process.
29         -$(MAKE) clean
30
31         dh_clean 
32
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k 
37         dh_installdirs
38         dh_installmenu
39         dh_icons
40         # Add here commands to install the package into debian/pcremote-server.
41         #$(MAKE) install DESTDIR=$(CURDIR)/debian/pcremote-server
42         mkdir -p $(CURDIR)/debian/pcremote-server
43
44         ###insert your commands here
45         cp *.py $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
46         cp -r exceptions/ $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
47         cp -r images/ $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
48         cp -r services/ $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
49         cp -r players/ $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
50         cp -r connection/ $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
51         cp -r utils/ $(CURDIR)/debian/pcremote-server/usr/share/pcremote-server
52
53         ### Installing menufile
54         # copy the file with the menu entry into /usr/share/applications
55         cp pcremote-server.desktop $(CURDIR)/debian/pcremote-server/usr/share/applications
56         cp pcremote.png $(CURDIR)/debian/pcremote-server/usr/share/icons 
57         cp pcremote-server-menu $(CURDIR)/debian/pcremote-server/usr/share/menu
58         cp pcremote-server $(CURDIR)/debian/pcremote-server/usr/bin
59
60 # Build architecture-independent files here.
61 binary-indep: build install
62 # We have nothing to do by default.
63
64 # Build architecture-dependent files here.
65 binary-arch: build install
66         dh_testdir
67         dh_testroot
68         dh_installchangelogs 
69         dh_installdocs
70         dh_installexamples
71 #       dh_install
72         dh_installmenu
73 #       dh_installdebconf       
74 #       dh_installlogrotate
75 #       dh_installemacsen
76 #       dh_installpam
77 #       dh_installmime
78 #       dh_python
79 #       dh_installinit
80 #       dh_installcron
81 #       dh_installinfo
82         dh_installman
83         dh_link
84         dh_strip
85         dh_compress
86         dh_fixperms
87 #       dh_perl
88 #       dh_makeshlibs
89         dh_installdeb
90         dh_shlibdeps
91         dh_gencontrol
92         dh_md5sums
93         dh_builddeb
94
95 binary: binary-indep binary-arch
96 .PHONY: build clean binary-indep binary-arch binary install configure