Rev 3 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/usr/bin/make -f# -*- makefile -*-# Sample debian/rules that uses debhelper.# This file was originally written by Joey Hess and Craig Small.# As a special exception, when this file is copied by dh-make into a# dh-make output file, you may use that output file without restriction.# This special exception was added by Craig Small in version 0.37 of dh-make.# Uncomment this to turn on verbose mode.#export DH_VERBOSE=1DESTDIR=$(CURDIR)/debian/tmpICON_SIZES=16 22 32 48 64 96PIXMAP_SIZES=16 32include /usr/share/dpatch/dpatch.makeclean: clean-patched unpatchdh_cleanclean-patched:dh_testdirdh_testrootrm -f build-stamp configure-stamprm -f pyscrabble-*.png pyscrabble-*.xpmpython setup.py clean -afind -name '*.pyc' -deletebuild: $(DPATCH_STAMPFN)python setup.py buildfor size in $(ICON_SIZES); do \rsvg -h $$size -w $$size debian/pyscrabble.svg pyscrabble-$$size.png; \donefor size in $(PIXMAP_SIZES); do \convert pyscrabble-$$size.png pyscrabble-$${size}x$${size}.xpm; \doneinstall: builddh_testdirdh_testrootdh_clean -kpython setup.py install --no-compile --root=$(DESTDIR) \--install-scripts=/usr/games \--confdir=/etc/pyscrabble \--logdir=/var/log/pyscrabble \--dbdir=/var/lib/pyscrabblemv $(DESTDIR)/usr/games/pyscrabble-main.py $(DESTDIR)/usr/games/pyscrabblemv $(DESTDIR)/usr/games/server_console.py $(DESTDIR)/usr/games/pyscrabble-server# rm $(DESTDIR)/usr/bin/db_upgrade.pyinstall -m755 -d $(DESTDIR)/usr/share/pixmapsinstall -m644 pyscrabble-*.xpm $(DESTDIR)/usr/share/pixmapsinstall -m755 -d $(DESTDIR)/usr/share/icons/hicolor/scalable/appsgzip < debian/pyscrabble.svg > $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/pyscrabble.svgzfor size in $(ICON_SIZES); do \install -m755 -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \install -m644 pyscrabble-$$size.png \$(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/pyscrabble.png; \doneinstall -d -m755 $(DESTDIR)/usr/share/applications/install -m644 debian/pyscrabble.desktop $(DESTDIR)/usr/share/applications/# Build architecture-dependent files here.binary-arch:# We have nothing to do by default.# Build architecture-independent files here.binary-indep: build installdh_testdirdh_testrootdh_install --sourcedir=debian/tmpdh_linkdh_pycentraldh_installchangelogs CHANGELOG.txtdh_installdocsdh_installexamplesdh_installmandh_installinitdh_installmenudh_desktopdh_stripdh_compressdh_fixpermsdh_installdebdh_shlibdepsdh_gencontroldh_md5sumsdh_builddebbinary: binary-indep binary-arch.PHONY: build clean binary-indep binary-arch binary install configure