3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
15 SETUP
= GPODDER_INSTALL_UIS
="cli qml" $(PYTHON
) setup.py
18 DESTDIR
= debian
/$(PACKAGE
)
22 ORG_DIST_PACKAGES
= $(PREFIX
)/lib
/$(PYTHON
)/dist-packages
23 OPT_DIST_PACKAGES
= $(OPTDIR
)/lib
/$(PYTHON
)/dist-packages
25 configure
: configure-stamp
31 build-stamp
: configure-stamp
33 PYTHON
=$(PYTHON
) make share
/dbus-1
/services
/org.gpodder.service
34 PYTHON
=$(PYTHON
) make share
/applications
/gpodder.desktop
35 PYTHON
=$(PYTHON
) make messages
42 rm -f build-stamp configure-stamp
46 PYTHON
=$(PYTHON
) make
clean
53 ${SETUP} install --no-compile
--install-layout
=deb
--root
='$(DESTDIR)' --prefix='$(PREFIX)'
55 mkdir
-p
$(DESTDIR
)/$(OPTDIR
)/share
56 mv
$(DESTDIR
)/$(PREFIX
)/share
/{gpodder
,locale
,man
} $(DESTDIR
)/$(OPTDIR
)/share
/
57 mkdir
-p
$(DESTDIR
)/$(OPT_DIST_PACKAGES
)
58 rm -f
$(DESTDIR
)/$(ORG_DIST_PACKAGES
)/gpodder-?.?.?.egg-info
59 mv
$(DESTDIR
)/$(ORG_DIST_PACKAGES
)/* $(DESTDIR
)/$(OPT_DIST_PACKAGES
)/
60 mkdir
-p
$(DESTDIR
)/$(OPTDIR
)/bin
61 mv
$(DESTDIR
)/$(PREFIX
)/bin
/* $(DESTDIR
)/$(OPTDIR
)/bin
/
62 mv
$(DESTDIR
)/$(PREFIX
)/share
/pixmaps
/gpodder.png
$(DESTDIR
)/$(OPTDIR
)/gpodder.png
63 rm -rf
$(DESTDIR
)/$(PREFIX
)/share
/{icons
,pixmaps
}/
64 rm -rf
$(DESTDIR
)/$(PREFIX
)/{bin
,lib
}/
68 binary-indep
: build
install
71 dh_installdocs
$(DOCS
)
82 .PHONY
: build
clean binary-indep binary-arch binary
install configure