source: llum/trunk/fuentes/debian/rules @ 376

Last change on this file since 376 was 376, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 2.1 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 llumTranslation/messages.po lliurex-po/llum/llum.pot
32        cp -f llumTranslation/es.po lliurex-po/llum/es.po
33        cp -f llumTranslation/qcv.po lliurex-po/llum/ca@valencia.po
34
35
36configure: configure-stamp
37configure-stamp: update-po
38        dh_testdir
39
40        mkdir -p $(MONO_SHARED_DIR)/.wapi
41       
42        touch configure-stamp
43
44build: build-stamp
45
46build-stamp: configure-stamp
47        dh_testdir
48        LC_CTYPE=C.UTF-8 LANG=C.UTF-8 LC_NUMERIC=C.UTF-8 LC_TIME=C.UTF-8 LC_NAME=C.UTF-8 LC_ALL=C.UTF-8 xbuild
49        make banners
50        touch build-stamp
51
52clean:
53        dh_testdir
54        dh_testroot
55        rm -f build-stamp configure-stamp
56
57        $(MAKE) banners-clean
58        -rm -rf build installtmp
59        rm -rf $(MONO_SHARED_DIR)/.wapi
60        dh_clean
61
62install: build
63        dh_testdir
64        dh_testroot
65        dh_clean -k
66        dh_installdirs
67
68       
69        ls
70        mv  llum/bin/Debug/* $(CURDIR)/debian/llum/usr/lib/llum
71        find $(CURDIR)/debian/llum/usr/lib/llum -type f -exec chmod a-x {} \;
72        install -c -m755 debian/llum.sh $(CURDIR)/debian/llum/usr/bin/llum
73       
74
75       
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_installdeb
95        dh_shlibdeps
96        dh_gencontrol
97        dh_md5sums
98        dh_builddeb
99       
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.