mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1143 05730e5d-ab1b-0410-a4ac-84af385074fa
106 lines
2.9 KiB
Makefile
Executable File
106 lines
2.9 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
export DH_OPTIONS
|
|
|
|
include /usr/share/quilt/quilt.make
|
|
|
|
configure: configure-stamp
|
|
configure-stamp: $(QUILT_STAMPFN)
|
|
dh_testdir
|
|
qmake-qt4 main.pro CONFIG+=release DEFINES+=NO_UPDATE_CHECK DEFINES+=PLUGIN_PATH=/usr/lib/mumble
|
|
|
|
touch configure-stamp
|
|
|
|
build: build-arch
|
|
|
|
build-arch: build-arch-stamp
|
|
|
|
build-arch-stamp: configure-stamp
|
|
$(MAKE) release
|
|
touch $@
|
|
|
|
clean: unpatch
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-arch-stamp configure-stamp
|
|
|
|
[ ! -f Makefile ] || $(MAKE) distclean
|
|
|
|
# Unfortunately, static libraries are left over after
|
|
# qmake's makefile is done, as are the translations.
|
|
[ ! -f src/mumble/mumble_en.qm ] || rm -rf release debug src/mumble/*.qm
|
|
|
|
dh_clean
|
|
|
|
install: install-indep install-arch
|
|
|
|
install-indep:
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k -i
|
|
dh_installdirs -i
|
|
dh_install -i
|
|
|
|
# Install and rename web scripts
|
|
install -D -m 0755 ./scripts/murmur.pl $(CURDIR)/debian/mumble-server-web/usr/lib/cgi-bin/mumble-server/register.cgi
|
|
install -D -m 0755 ./scripts/weblist.pl $(CURDIR)/debian/mumble-server-web/usr/lib/cgi-bin/mumble-server/list.cgi
|
|
|
|
install-arch:
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k -s
|
|
dh_installdirs -s
|
|
dh_install -s
|
|
|
|
# Add debian files
|
|
install -m 0755 ./scripts/murmur.init $(CURDIR)/debian/mumble-server.init
|
|
install -m 0755 ./scripts/murmur.logrotate $(CURDIR)/debian/mumble-server.logrotate
|
|
|
|
# install mumble files that need to be renamed
|
|
install -m 0644 -D ./icons/mumble.16x16.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/16x16/mumble.png
|
|
install -m 0644 -D ./icons/mumble.32x32.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/32x32/mumble.png
|
|
install -m 0644 -D ./icons/mumble.48x48.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/48x48/mumble.png
|
|
install -m 0644 -D ./icons/mumble.64x64.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/64x64/mumble.png
|
|
|
|
# install rest of murmur files (rename & permissions)
|
|
install -D -m 0644 ./scripts/murmur.conf $(CURDIR)/debian/mumble-server/etc/dbus-1/system.d/mumble-server.conf
|
|
install -D -m 0644 ./scripts/murmur.ini.system $(CURDIR)/debian/mumble-server/etc/mumble-server.ini
|
|
|
|
binary-common:
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installchangelogs CHANGES
|
|
dh_installdocs
|
|
dh_installexamples
|
|
dh_installmenu
|
|
dh_installinit
|
|
dh_installman
|
|
dh_installlogrotate
|
|
dh_installdebconf
|
|
dh_gconf
|
|
dh_icons
|
|
dh_desktop
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_perl $(CURDIR)/debian/mumble-server-web/usr/lib/cgi-bin/mumble-server
|
|
dh_installdeb
|
|
dh_shlibdeps
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary-indep: install-indep
|
|
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
|
|
|
|
binary-arch: build-arch install-arch
|
|
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
|