source: pbconf/devel/ProjectBuilder/deb/rules @ 867

Revision 867, 2.1 KB checked in by bruno, 4 years ago (diff)
  • Transition static distribution into a configuration file typically /etc/pb/pb.conf
  • function pb_distro_init adapted to use the new conf file
  • function pb_distro_get_param adapted to support osfamily and ostype
  • Adapt the package building of pb to the need of the new configuration file
  • Property svn:executable set to *
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# $Id$
7#
8
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
11
12# Define package name variable for a one-stop change.
13PACKAGE_NAME = PBREALPKG
14
15# These are used for cross-compiling and for saving the configure script
16# from having to guess our platform (since we know it already)
17DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19
20CFLAGS = -Wall -g
21
22ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23        CFLAGS += -O0
24else
25        CFLAGS += -O2
26endif
27ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
28        INSTALL_PROGRAM += -s
29endif
30
31build: build-stamp
32
33build-stamp:
34                dh_testdir
35
36                # Add here commands to compile the package.
37                perl Makefile.PL CONFDIR=/etc/pb
38                $(MAKE)
39                touch $@
40
41clean:
42                dh_testdir
43                dh_testroot
44                rm -f build-stamp
45
46                # Add here commands to clean up after the build process.
47                -$(MAKE) distclean
48
49                dh_clean
50
51install: build
52                dh_testdir
53                dh_testroot
54                dh_clean -k
55                dh_installdirs
56
57                # Add here commands to install the package into debian/PBREALPKG
58                $(MAKE) install DESTDIR=$(CURDIR)/debian/PBREALPKG
59
60# Build architecture-independent files here.
61binary-indep: build install
62        # We have nothing to do by default.
63
64# Build architecture-dependent files here.
65binary-arch: build install
66                        dh_testdir
67                        dh_testroot
68                        dh_installchangelogs ChangeLog
69                        dh_installdocs
70                        dh_installexamples
71                                #       dh_install
72                                #       dh_installmenu
73                                #       dh_installdebconf
74                                #       dh_installlogrotate
75                                #       dh_installemacsen
76                                #       dh_installpam
77                                #       dh_installmime
78                                #       dh_python
79                                #       dh_installinit
80                                #       dh_installcron
81                                #       dh_installinfo
82                        dh_installman
83                        dh_strip
84                        dh_compress
85                        dh_fixperms
86                                                                #       dh_perl
87                                                                #       dh_makeshlibs
88                        dh_installdeb
89                        dh_shlibdeps
90                        dh_gencontrol
91                        dh_md5sums
92                        dh_builddeb
93
94binary: binary-indep binary-arch
95.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.