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
|
#!/usr/bin/make -f
# Based on sample debian/rules from debhelper. GNU copyright 1997 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the pacckage.
chmod +x ./configure
./configure --with-x --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --bindir=/usr/bin --datadir=/usr/lib/elvis linux
make CC="cc -O2 -g" LIBS="-L/usr/X11R6/lib -lX11 -lncurses"
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
# Add here commands to clean up after the build process.
-make clobber
-rm -f Makefile config.h config.stat ctags
# Build architecture-independent files here.
binary-indep: build
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build
dh_testversion
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the files into debian/tmp
$(MAKE) BINDIR="debian/tmp/usr/bin" LIBDIR="debian/tmp/usr/lib/elvis" install
mv debian/tmp/usr/lib/elvis/elvis.arf debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.brf debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.bwf debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.ini debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.lat debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.syn debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.msg debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.pc8 debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvis.x11 debian/tmp/etc/elvis
mv debian/tmp/usr/lib/elvis/elvistrs.msg debian/tmp/etc/elvis
cp debian/tmp/usr/lib/elvis/elvis.man debian/tmp/usr/share/man/man1/elvis.1
cp debian/tmp/usr/lib/elvis/ctags.man debian/tmp/usr/share/man/man1/elvtags.1
cp debian/tmp/usr/lib/elvis/ref.man debian/tmp/usr/share/man/man1/ref-elvis.1
#rm debian/tmp/usr/share/man/man1/fmt.1
#rm debian/tmp/usr/share/man/man1/ref.1
#rm debian/tmp/usr/share/man/man1/ctags.1
( cd debian/tmp/usr/share/man/man1 && ln -s elvis.1.gz elvisnox.1.gz )
#give these unique names -- later on we use update-alternatives
#mv debian/tmp/usr/bin/ctags debian/tmp/usr/bin/ctags-elvis
mv debian/tmp/usr/bin/ref debian/tmp/usr/bin/ref-elvis
cp debian/elvisnox debian/tmp/usr/bin/elvisnox
#ok, done with that
dh_installdocs README.html BUGS lib/*.html lib/*.man
#ok, blow away some extra crap now
rm debian/tmp/usr/lib/elvis/*.html
rm debian/tmp/usr/lib/elvis/*.man
rm debian/tmp/usr/lib/elvis/license
chmod +x debian/tmp/usr/lib/elvis/printdoc.bat
#we don't want this -- a better version is provided with textutils
#rm debian/tmp/usr/bin/fmt
#ok now, carry on...
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installinit
dh_installcron
# dh_installmanpages
dh_undocumented
dh_installchangelogs
dh_strip
dh_compress
# These must be uncompressed, because they are online help_docs
# and elvis cannot read compressed files...
gunzip debian/tmp/usr/share/doc/elvis/*.man.gz
dh_fixperms
dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|