source: ProjectBuilder/projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/rules@ 734

Last change on this file since 734 was 734, checked in by Bryan Gartner, 15 years ago

snapshot cleanup of packaging directives and precedence

  • Property svn:executable set to *
File size: 3.1 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# This file was originally written by Joey Hess and Craig Small.
5# As a special exception, when this file is copied by dh-make into a
6# dh-make output file, you may use that output file without restriction.
7# This special exception was added by Craig Small in version 0.37 of dh-make.
8
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
11
12
13# These are used for cross-compiling and for saving the configure script
14# from having to guess our platform (since we know it already)
15DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
18
19CFLAGS = -Wall -g
20
21ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 CFLAGS += -O0
23else
24 CFLAGS += -O2
25endif
26
27config.status: configure
28 mkdir debian/linuxcoe-sd
29 ln -s linuxcoe-sd PBPKG
30 dh_testdir
31 # Add here commands to configure the package.
32 #./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
33 ./configure \
34 webalias="PBwebalias" \
35 webworkdir="PBwebworkdir" \
36 httpdcfgdir="PBhttpdcfgdir" \
37 httpd_user="PBhttpd_user" \
38 httpd_group="PBhttpd_group" \
39 sudoers_cfg="PBsudoers_cfg" \
40 --prefix=PBprefix \
41 --sysconfdir=PBsysconfdir \
42 --localstatedir=PBlocalstatedir \
43 --host=$(DEB_HOST_GNU_TYPE) \
44 --build=$(DEB_BUILD_GNU_TYPE) \
45 --without-MKISOFS \
46 --without-PERLMOD \
47 --without-PALO \
48 --without-SENDMAIL \
49 --without-APACHECTL \
50 --without-SUDO \
51 CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
52
53build: build-stamp
54
55build-stamp: config.status
56 dh_testdir
57
58 # Add here commands to compile the package.
59 $(MAKE)
60 #docbook-to-man debian/systemdesigner.sgml > systemdesigner.1
61
62 touch $@
63
64clean:
65 dh_testdir
66 dh_testroot
67 rm -f build-stamp
68 rm -rf debian/PBPKG
69
70 # Add here commands to clean up after the build process.
71 -$(MAKE) distclean
72ifneq "$(wildcard /usr/share/misc/config.sub)" ""
73 cp -f /usr/share/misc/config.sub config.sub
74endif
75ifneq "$(wildcard /usr/share/misc/config.guess)" ""
76 cp -f /usr/share/misc/config.guess config.guess
77endif
78
79
80 dh_clean -plinuxcoe-sd
81
82install: build
83 dh_testdir
84 dh_testroot
85 dh_clean -k
86 dh_installdirs
87
88 # Add here commands to install the package into debian/linuxcoe-sd
89 $(MAKE) install DESTDIR=$(CURDIR)/debian/linuxcoe-sd
90
91
92# Build architecture-independent files here.
93binary-indep: build install
94# We have nothing to do by default.
95
96# Build architecture-dependent files here.
97binary-arch: build install
98 dh_testdir
99 dh_testroot
100 dh_installchangelogs ChangeLog
101 dh_installdocs
102 dh_installexamples
103# dh_install
104# dh_installmenu
105# dh_installdebconf
106# dh_installlogrotate
107# dh_installemacsen
108# dh_installpam
109# dh_installmime
110# dh_python
111# dh_installinit
112# dh_installcron
113# dh_installinfo
114 dh_installman
115 dh_strip
116 dh_compress
117 dh_fixperms
118 dh_perl
119# dh_makeshlibs
120 dh_installdeb
121 dh_shlibdeps
122 dh_gencontrol
123 cp -a debian/linuxcoe-sd/* debian/PBPKG
124 dh_md5sums
125 dh_builddeb
126
127binary: binary-indep binary-arch
128.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.