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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2009 Sergio Talens-Oliag <sto@debian.org>
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
include /usr/share/quilt/quilt.make
configure: configure-stamp
configure-stamp:
dh_testdir
touch configure-stamp
build: build-stamp $(QUILT_STAMPFN)
build-stamp: configure-stamp
dh_testdir
touch $@
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
manpage = debian/gvrng/usr/share/man/man1/gvrng.1
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs -a
# Recompress manpage to get max compression
[ -f $(manpage).gz ] && gunzip $(manpage).gz && gzip -9 $(manpage) || true
# Build architecture-independent files here.
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs Changelog
dh_installdocs
dh_installman
dh_installmenu
dh_install
# Fix file permismions
chmod +x debian/gvrng/usr/share/GvRng/gvrng.py
chmod +x debian/gvrng/usr/share/GvRng/po/generate_pot.py
chmod -x debian/gvrng/usr/share/GvRng/bitmaps/*
# Build locale files
for f in gvrng; do \
for po in `ls po/*/$$f.po`; do \
lang=`echo $$po | sed -e "s%po/%%;s%/$$f.po%%"`; \
mkdir -p debian/gvrng/usr/share/locale/$$lang/LC_MESSAGES/; \
msgfmt $$po -o debian/gvrng/usr/share/locale/$$lang/LC_MESSAGES/$$f.mo; \
done \
done
dh_pysupport GvRng
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
# Remove unneded files for gvr-lessons metapackage
rm -f debian/gvr-lessons/usr/share/doc/gvr-lessons/changelog.gz
dh_builddeb
# Build architecture-dependent files here.
binary-arch: install
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|