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
|
#!/usr/bin/make -f
# -*- makefile -*- made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
package=eggdrop
CC=cc
SHELL=/bin/bash
stamp-configure:
CC="$(CC) -DDEBIAN -DREDHATSUX $(HACK)" \
./configure --prefix=/usr
touch stamp-configure
build: stamp-configure
$(checkdir)
$(MAKE) modules CFLGS="-DEBUG_MEM -DEBUG_OUTPUT -DEBUG -fPIC"
$(MAKE) modegg CFLGS="-DEBUG_MEM -DEBUG_OUTPUT -DEBUG"
touch build
clean:
$(checkdir)
-$(MAKE) distclean
rm -f build stamp-configure
rm -f config.cache config.log Makefile eggdrop *.so
rm -f $$(find . -name "*~" -o -name "*.o" -o -name "*.so")
rm -rf $$(find debian/* -type d) debian/files* core debian/*substvars*
find .. -name $(package)*.asc -size 0 -maxdepth 1 -exec rm {} ";"
binary-indep: checkroot build
$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: checkroot build
$(checkdir)
rm -rf debian/tmp && install -d debian/tmp
cd debian/tmp && install -d $$(cat ../dirs)
dh_installdirs
dh_installdocs NEWTO1.3.0
dh_installchangelogs
cp -a eggdrop eggdrop.conf.dist motd README debian/putegg \
help scripts language debian/tmp/usr/lib/$(package)
cp -a src/mod/*/*.lang debian/tmp/usr/lib/$(package)/language
install scripts/botchk debian/tmp/usr/lib/$(package) # FIXME
cp -a eggdrop.conf.dist \
debian/tmp/usr/lib/$(package)/eggdrop.conf # FIXME
sed -e s?/usr/local/bin?/usr/bin?g scripts/weed > \
debian/tmp/usr/lib/$(package)/scripts/weed
chmod 755 debian/tmp/usr/lib/$(package)/{scripts/weed,putegg}
ln -s ../../doc/eggdrop debian/tmp/usr/lib/$(package)/doc
cp -p doc/UPDATES1.3 debian/tmp/usr/doc/$(package)/changelog
install -m 644 *.so debian/tmp/usr/lib/$(package)/modules
ln -s ../lib/$(package)/$(package) debian/tmp/usr/bin/$(package)
ln -s ../lib/$(package)/putegg debian/tmp/usr/bin/putegg
dh_undocumented putegg.1
dh_installmanpages -v
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_md5sums
chown -R root.root debian/tmp
chmod -R go=rX debian/tmp
dpkg --build debian/tmp ..
define checkdir
test -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|