source: xmlrpcnet/trunk/fuentes/debian/rules @ 379

Last change on this file since 379 was 379, checked in by hectorgh, 5 years ago

adding project files

  • Property svn:executable set to *
File size: 2.0 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.*$$//')
18APIVERSION = 1.0
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
30configure: configure-stamp
31configure-stamp: 
32        dh_testdir
33
34        mkdir -p $(MONO_SHARED_DIR)/.wapi
35       
36        touch configure-stamp
37
38build: build-stamp
39
40build-stamp: configure-stamp
41        dh_testdir
42
43        touch build-stamp
44
45clean:
46        dh_testdir
47        dh_testroot
48        rm -f build-stamp configure-stamp
49
50        $(MAKE) clean
51        -rm -rf build installtmp
52        rm -rf $(MONO_SHARED_DIR)/.wapi
53        dh_clean
54
55install: build
56        dh_testdir
57        dh_testroot
58        dh_prep
59        dh_installdirs
60        #find $(CURDIR)/debian/user-mutation-tools/usr/lib/user-mutation-tools -type f -exec chmod a-x {} \;
61        #install -c -m711 debian/user-mutation-tools.sh $(CURDIR)/debian/user-mutation-tools/usr/bin/um-login
62       
63
64# Build architecture-independent files here.
65binary-arch: build install
66        $(MAKE) release
67        cp bin/Release/* $(CURDIR)/debian/xmlrpcnet/usr/lib/mono/2.0/
68        cp $(CURDIR)/xmlrpcnet.pc $(CURDIR)/debian/xmlrpcnet/usr/lib/pkgconfig/
69
70
71
72# Build architecture-dependent files here.
73binary-indep: build binary-arch install
74        dh_testdir
75        dh_testroot
76        dh_installchangelogs
77        dh_installdocs
78        dh_installexamples
79        dh_install
80        dh_fixperms
81        dh_installman
82        dh_link
83        dh_installcligac
84        dh_clifixperms
85        dh_strip
86        dh_compress
87        dh_installdeb
88        dh_makeclilibs -m $(APIVERSION)
89        dh_clideps -d
90        dh_shlibdeps
91        dh_gencontrol
92        dh_md5sums
93        dh_builddeb
94
95binary: binary-indep binary-arch
96.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.