source: lliurex-miniscreen/trunk/fuentes/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.3 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-arch build-indep
46build-arch: build-stamp
47build-indep: build-stamp
48
49build-stamp: configure-stamp
50        dh_testdir
51
52
53        $(MAKE) release
54
55        touch build-stamp
56
57clean:
58        dh_testdir
59        dh_testroot
60        rm -f build-stamp configure-stamp
61
62        $(MAKE) clean
63        -rm -rf build installtmp
64        rm -rf $(MONO_SHARED_DIR)/.wapi
65        dh_clean
66
67install: build
68        dh_testdir
69        dh_testroot
70        dh_prep
71        dh_installdirs
72
73        cp -r miniscreen/bin/Release/* $(CURDIR)/debian/lliurex-miniscreen/usr/lib/lliurex-miniscreen
74        #find $(CURDIR)/debian/lliurex-miniscreen/usr/lib/lliurex-miniscreen/miniscreen.exe -type f -exec chmod a-x {} \;
75        install -c -m755 debian/lliurex-miniscreen.sh $(CURDIR)/debian/lliurex-miniscreen/usr/bin/lliurex-miniscreen
76
77# Build architecture-independent files here.
78binary-arch: build install
79# We have nothing to do by default.
80
81# Build architecture-dependent files here.
82binary-indep: build install
83        dh_testdir
84        dh_testroot
85        dh_installchangelogs
86        dh_installdocs
87        dh_installexamples
88        dh_install
89        dllxh_install
90        dh_installman
91        dh_link
92        dh_strip
93        dh_compress
94        dh_fixperms
95        dh_installdeb
96        dh_shlibdeps
97        dh_gencontrol
98        dh_md5sums
99        dh_builddeb
100       
101binary: binary-indep binary-arch
102.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.