Files
alien/debian/rules
joey 23baf2bcf4 * Major typo fix in Tgz.pm.
* Fixed newlines in tgz filelist.
   * Fixed some undefined value warnings.
2000-04-22 23:32:45 +00:00

65 lines
1.9 KiB
Makefile
Executable File

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
perl Makefile.PL
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) realclean
dh_clean
binary-arch: build
binary-indep: build
dh_testdir
dh_testroot
dh_clean -k
$(MAKE) pure_install PREFIX=$(shell pwd)/debian/tmp/ INSTALLDIRS=perl \
INSTALLMAN1DIR=$(shell pwd)/debian/tmp/usr/share/man/man1 \
INSTALLMAN3DIR=$(shell pwd)/debian/tmp/usr/share/man/man3 \
INSTALLPRIVLIB=$(shell pwd)/debian/tmp/usr/lib/perl5 \
INSTALLSCRIPT=$(shell pwd)/debian/tmp/usr/bin \
INSTALLARCHLIB=$(shell pwd)/debian/tmp/killme
# Who does it make this empty directory? Sigh.
rm -rf debian/tmp/killme
dh_installdocs README gendiff.txt
dh_installexamples
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)')
# Update the web page. Not intended for use by anyone except the author.
installhook:
cp debian/changelog /home/pub/programs/alien/CHANGES
echo $(VERSION) > /home/pub/programs/alien/LATEST-VERSION-IS
rm /home/ftp/pub/code/alien/* || true
cd /home/ftp/pub/code/alien; \
ln -sf ../debian/alien_$(VERSION).tar.gz alien_$(VERSION).tar.gz; \
ln -sf ../debian/alien_$(VERSION).tar.gz alien.tar.gz
fakeroot alien -k --to-slp /home/joey/debian/public/alien_*.deb
mv alien-$(VERSION).slp /home/ftp/pub/code/alien/
fakeroot alien -k --to-rpm /home/joey/debian/public/alien_*.deb
mv alien-$(VERSION)*.rpm /home/ftp/pub/code/alien/
ln -s /home/ftp/pub/code/alien/alien-$(VERSION)*.rpm \
/home/ftp/pub/code/alien/alien.rpm
ln -s /home/ftp/pub/code/alien/alien-$(VERSION).slp \
/home/ftp/pub/code/alien/alien.slp
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary