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 PATH:=$(PATH):/usr/games
9
10 build: build-stamp
11
12 build-stamp:
13 dh_testdir
14
15 # Add here commands to compile the package.
16 #$(MAKE)
17 #python setup.py build
18 #/usr/bin/docbook-to-man debian/cappuccino.sgml > cappuccino.1
19
20 touch build-stamp
21
22 clean:
23 dh_testdir
24 dh_testroot
25 rm -f build-stamp
26 rm -rf build/
27 # Add here commands to clean up after the build process.
28 python3 setup.py clean
29 rm -f *.grm.o
30 #-$(MAKE) distclean
31
32 dh_clean
33
34 install: build
35 dh_testdir
36 dh_testroot
37 dh_prep
38 dh_installdirs
39
40 # Add here commands to install the package into debian/cappuccino.
41 #$(MAKE) install prefix=$(CURDIR)/debian/cappuccino/usr
42 #$(MAKE) install DESTDIR=$(CURDIR)/debian/cappuccino
43 python3 setup.py install --prefix=$(CURDIR)/debian/cappuccino/usr --install-layout=deb
44
45 mkdir -p $(CURDIR)/debian/cappuccino/usr/share/cappuccino/
46 cp $(CURDIR)/cappuccino.grm $(CURDIR)/debian/cappuccino/usr/share/cappuccino/
47 cp $(CURDIR)/compileline.grm $(CURDIR)/debian/cappuccino/usr/share/cappuccino/
48 cp $(CURDIR)/cappuccino.jpg $(CURDIR)/debian/cappuccino/usr/share/cappuccino/
49
50 polygen -seed 0 $(CURDIR)/debian/cappuccino/usr/share/cappuccino/cappuccino.grm > /dev/null
51 polygen -seed 0 $(CURDIR)/debian/cappuccino/usr/share/cappuccino/compileline.grm > /dev/null
52
53 # As it is considered a game, put a link at /usr/games
54 mkdir $(CURDIR)/debian/cappuccino/usr/games
55 ln -s /usr/bin/cappuccino $(CURDIR)/debian/cappuccino/usr/games/cappuccino
56
57 # Build architecture-independent files here.
58 binary-indep: build install
59 dh_testdir
60 dh_testroot
61 # dh_installdebconf
62 dh_installdocs
63 dh_installexamples
64 dh_installmenu
65 # dh_installlogrotate
66 # dh_installemacsen
67 # dh_installpam
68 # dh_installmime
69 # dh_installinit
70 dh_installcron
71 dh_installman cappuccino.1
72 dh_installinfo
73 # dh_undocumented
74 dh_installchangelogs ChangeLog
75 dh_link
76 dh_strip
77 dh_compress
78 dh_fixperms
79 # dh_makeshlibs
80 dh_installdeb
81 # dh_perl
82 dh_shlibdeps
83 dh_gencontrol
84 dh_md5sums
85 dh_builddeb
86
87 # Build architecture-dependent files here.
88 binary-arch: build install
89
90 binary: binary-indep binary-arch
91
92 build-arch: build
93 build-indep: build
94
95 .PHONY: build build-arch build-indep clean binary-indep binary-arch binary install