1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# The maintainer of this package uses git to make the contents of
# debian/patches by running "./debian/rules genpatches".
# At build time, each patch is applied in order using the "patch"
# command.
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
patch: patch-stamp
patch-stamp:
dh_testdir
for i in `ls -1 debian/patches/*.patch || :`; do \
patch -p1 <$$i || exit 1; \
done
touch patch-stamp
unpatch:
dh_testdir
! test -e patch-stamp || \
for i in `ls -1r debian/patches/*.patch || :`; do \
patch -p1 -R <$$i; \
done
rm -f patch-stamp
# To be run only by the maintainer
genpatches:
dh_testdir
rm -fr debian/patches
mkdir debian/patches
git format-patch -o debian/patches upstream..patches
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: patch build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
#$(MAKE)
#/usr/bin/docbook-to-man debian/cedet.sgml > cedet.1
touch build-stamp
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || $(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/cedet.
#$(MAKE) install DESTDIR=$(CURDIR)/debian/cedet
# Install cedet-common
install -m 644 $(CURDIR)/common/*.el $(CURDIR)/debian/cedet-common/usr/share/emacs/site-lisp/cedet-common
install -m 644 $(CURDIR)/common/icons/*.xpm $(CURDIR)/debian/cedet-common/usr/share/emacs/site-lisp/cedet-common/icons
# Install cedet-contrib
install -m 644 $(CURDIR)/contrib/*.el $(CURDIR)/debian/cedet-contrib/usr/share/emacs/site-lisp/cedet-contrib
install -m 644 $(CURDIR)/contrib/*.wy $(CURDIR)/debian/cedet-contrib/usr/share/emacs/site-lisp/cedet-contrib
# Install cogre
install -m 644 $(CURDIR)/cogre/*.el $(CURDIR)/debian/cogre/usr/share/emacs/site-lisp/cogre
install -m 644 $(CURDIR)/cogre/*.wy $(CURDIR)/debian/cogre/usr/share/emacs/site-lisp/cogre
# Install ede
install -m 644 $(CURDIR)/ede/*.el $(CURDIR)/debian/ede/usr/share/emacs/site-lisp/ede
# Remove skelton (you can find it in /usr/share/doc/ede/examples)
rm -f $(CURDIR)/debian/ede/usr/share/emacs/site-lisp/ede/ede-proj-skel.el
# Install eieio
install -m 644 $(CURDIR)/eieio/*.el $(CURDIR)/debian/eieio/usr/share/emacs/site-lisp/eieio
# Remove things marked as "examples" or "test" by the upstream
rm -f $(CURDIR)/debian/eieio/usr/share/emacs/site-lisp/eieio/tree.el
rm -f $(CURDIR)/debian/eieio/usr/share/emacs/site-lisp/eieio/call-tree.el
rm -f $(CURDIR)/debian/eieio/usr/share/emacs/site-lisp/eieio/lmcompile.el
rm -f $(CURDIR)/debian/eieio/usr/share/emacs/site-lisp/eieio/eieio-tests.el
# Install semantic
install -m 644 $(CURDIR)/semantic/*.el $(CURDIR)/debian/semantic/usr/share/emacs/site-lisp/semantic
install -m 644 $(CURDIR)/semantic/*.wy $(CURDIR)/debian/semantic/usr/share/emacs/site-lisp/semantic
install -m 644 $(CURDIR)/semantic/bovine/*.el $(CURDIR)/debian/semantic/usr/share/emacs/site-lisp/semantic/bovine
install -m 644 $(CURDIR)/semantic/bovine/*.by $(CURDIR)/debian/semantic/usr/share/emacs/site-lisp/semantic/bovine
install -m 644 $(CURDIR)/semantic/wisent/*.el $(CURDIR)/debian/semantic/usr/share/emacs/site-lisp/semantic/wisent
install -m 644 $(CURDIR)/semantic/wisent/*.wy $(CURDIR)/debian/semantic/usr/share/emacs/site-lisp/semantic/wisent
# Install speedbar
install -m 644 $(CURDIR)/speedbar/*.el $(CURDIR)/debian/speedbar/usr/share/emacs/site-lisp/speedbar
install -m 644 $(CURDIR)/speedbar/*.xpm $(CURDIR)/debian/speedbar/usr/share/emacs/site-lisp/speedbar
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs -pcedet-common common/ChangeLog
dh_installchangelogs -pcedet-contrib contrib/ChangeLog
dh_installchangelogs -pcogre cogre/ChangeLog
dh_installchangelogs -pede
dh_installchangelogs -peieio eieio/ChangeLog
dh_installchangelogs -psemantic semantic/ChangeLog
dh_installchangelogs -pspeedbar speedbar/ChangeLog
dh_installchangelogs -pspeedbar-beta
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
dh_installemacsen -pcedet-common --priority=50
dh_installemacsen -peieio --priority=50
dh_installemacsen -pede --priority=51
dh_installemacsen -pspeedbar --priority=51
dh_installemacsen -psemantic --priority=52
dh_installemacsen -pcedet-contrib --priority=53
dh_installemacsen -pcogre --priority=53
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: patch unpatch genpatches build clean binary-indep binary-arch binary
.PHONY: install configure
|