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
|
#!/usr/bin/make -f
#
# debian/rules for vice
#
# First created Jan 2000 by Zed Pobre, with some reference to the work
# done by Giuliano Procida 1997-1999
export DH_COMPAT=3
PACKAGE=vice
DATADIRS=C64 C128 PET PLUS4 VIC20 CBM-II
install_program=install -p -o root -g root -m 755
make_directory=install -d -o root -g root -m 755
romtest:
chmod 755 debian/genromlist
debian/genromlist
touch romtest
configure: romtest configure-stamp
configure-stamp:
# aclocal
# autoheader
# automake
# autoconf
# cd src/resid && aclocal && automake && autoconf
./configure \
--prefix=/usr --with-midas --enable-fullscreen --without-xaw3d
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE)
touch build-stamp
clean:
dh_testdir
rm -f build-stamp configure-stamp romtest
-$(MAKE) distclean
# rm -f configure config.status confdefs.h aclocal.m4
find . -name Makefile -exec rm {} \;
# find . -name Makefile.in -exec rm {} \;
# cd src/resid && rm -f aclocal.m4 config.status config.log configure
rm -rf src/resid/tmp src/resid/autom4te.cache
rm -f src/arch/unix/x11/gnome/Makefile
rm -f src/arch/unix/readline/Makefile
rm -f src/arch/win32/Makefile
rm -f src/arch/msdos/Makefile
rm -f src/arch/riscos/Makefile
rm -f src/arch/os2/snippets/Makefile
rm -f src/arch/os2/vac++/Makefile
rm -f src/arch/os2/kbd/Makefile
rm -f src/arch/os2/dialogs/Makefile
rm -f src/arch/os2/ui/Makefile
rm -f src/arch/os2/Makefile
rm -f src/arch/beos/Makefile
rm -f po/de.gmo
dh_clean
binary-indep: build
binary-arch: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs
$(MAKE) INSTALL_PROGRAM='install' prefix=`pwd`/debian/$(PACKAGE)/usr install
# Remove the 0-byte placeholders
cd debian/$(PACKAGE)/usr/lib/vice && find . -empty -exec rm {} \;
# Copy the vkm files into place -- they aren't being pulled in by make
# install for some strange reason.
# set -e; for a in $(DATADIRS); do \
# cp data/$$a/*.vkm debian/$(PACKAGE)/usr/lib/vice/$$a/; \
# done
rm -rf debian/$(PACKAGE)/usr/lib/vice/doc
cp debian/icons/*.xpm debian/$(PACKAGE)/usr/share/pixmaps/
dh_installdocs
$(make_directory) debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/html
cp doc/html/*.html debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/html
ln -sf vice_toc.html debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/html/index.html
ln -sf ../../share/doc/vice debian/$(PACKAGE)/usr/lib/vice/doc
# $(install_program) debian/vice-getroms debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/
dh_installchangelogs -k ChangeLog
rm -rf debian/$(PACKAGE)/usr/info
dh_installinfo
dh_installmenu
rm -rf debian/$(PACKAGE)/usr/man
dh_installmanpages
set -e; for i in xpet xvic x64 x128; do \
ln -s vice.1.gz debian/$(PACKAGE)/usr/share/man/man1/$$i.1.gz; \
done
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
.PHONY: build configure romtest binary binary-arch binary-indep clean
|