source: lliurex-miniscreen/trunk/tags/1.7/debian/rules @ 345

Last change on this file since 345 was 345, checked in by mabarracus, 4 years ago

add trusty code
fixed compilation
fixed package dependencies in xenial

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# GNU copyright 1997 to 1999 by Joey Hess.
5
6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=1
8
9## for 1.0 ICSharpCode.SharpZipLib.dll
10#libmono-sharpzip0.6-cil
11## for 2.0 ICSharpCode.SharpZipLib.dll
12#libmono-sharpzip2.84-cil
13
14
15export MONO_SHARED_DIR=$(CURDIR)
16
17UPVERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2 | sed 's,-.*,,' | sed 's/.dfsg.*$$//')
18
19CFLAGS = -Wall -g
20
21ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22        CFLAGS += -O0
23else
24        CFLAGS += -O2
25endif
26ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
27        INSTALL_PROGRAM += -s
28endif
29
30update-po:
31        cp -f miniscreentranslation/messages.po lliurex-po/lliurex-miniscreen/lliurex-miniscreen.pot
32        cp -f miniscreentranslation/es_.po lliurex-po/lliurex-miniscreen/es.po
33        cp -f miniscreentranslation/qcv.po lliurex-po/lliurex-miniscreen/qcv.po
34        cp -f miniscreentranslation/ca.po lliurex-po/lliurex-miniscreen/ca.po
35
36
37configure: configure-stamp
38configure-stamp: update-po
39        dh_testdir
40
41        mkdir -p $(MONO_SHARED_DIR)/.wapi
42       
43        touch configure-stamp
44
45build: build-stamp
46
47build-stamp: configure-stamp
48        dh_testdir
49
50
51        $(MAKE) release
52
53        touch build-stamp
54
55clean:
56        dh_testdir
57        dh_testroot
58        rm -f build-stamp configure-stamp
59
60        $(MAKE) clean
61        -rm -rf build installtmp
62        rm -rf $(MONO_SHARED_DIR)/.wapi
63        dh_clean
64
65install: build
66        dh_testdir
67        dh_testroot
68        dh_clean -k
69        dh_installdirs
70
71        cp -r miniscreen/bin/Release/* $(CURDIR)/debian/lliurex-miniscreen/usr/lib/lliurex-miniscreen
72        find $(CURDIR)/debian/lliurex-miniscreen/usr/lib/lliurex-miniscreen/miniscreen.exe -type f -exec chmod a-x {} \;
73        install -c -m755 debian/lliurex-miniscreen.sh $(CURDIR)/debian/lliurex-miniscreen/usr/bin/lliurex-miniscreen
74       
75
76# Build architecture-independent files here.
77binary-arch: build install
78# We have nothing to do by default.
79
80# Build architecture-dependent files here.
81binary-indep: build install
82        dh_testdir
83        dh_testroot
84        dh_installchangelogs
85        dh_installdocs
86        dh_installexamples
87        dh_install
88        dllxh_install
89        dh_installman
90        dh_link
91        dh_strip
92        dh_compress
93        dh_installdeb
94        dh_shlibdeps
95        dh_gencontrol
96        dh_md5sums
97        dh_builddeb
98       
99
100binary: binary-indep binary-arch
101.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.