2008-10-24 19:49:41 +00:00
|
|
|
#!/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=1
|
|
|
|
|
2009-06-21 12:50:57 +00:00
|
|
|
build: build-stamp
|
2008-10-24 19:49:41 +00:00
|
|
|
|
2009-06-21 12:50:57 +00:00
|
|
|
build-stamp:
|
2009-06-17 19:33:54 +00:00
|
|
|
dh_testdir
|
2009-06-21 12:50:57 +00:00
|
|
|
# Build with wmii support
|
2008-10-24 19:49:41 +00:00
|
|
|
$(MAKE)
|
2009-06-21 12:50:57 +00:00
|
|
|
cp $(CURDIR)/i3status $(CURDIR)/i3status-wmii
|
2009-08-18 19:29:44 +00:00
|
|
|
# Build with xmobar support
|
|
|
|
$(MAKE) distclean
|
|
|
|
$(MAKE) EXTRA_CFLAGS="-DXMOBAR"
|
|
|
|
cp $(CURDIR)/i3status $(CURDIR)/i3status-xmobar
|
2009-06-21 12:50:57 +00:00
|
|
|
# Build with dzen support
|
2009-06-22 17:04:28 +00:00
|
|
|
$(MAKE) distclean
|
2009-06-21 12:50:57 +00:00
|
|
|
$(MAKE) EXTRA_CFLAGS="-DDZEN"
|
2008-10-24 19:49:41 +00:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp config.status
|
|
|
|
[ ! -f Makefile ] || $(MAKE) distclean
|
2009-06-21 12:50:57 +00:00
|
|
|
rm -f $(CURDIR)/i3status-wmii
|
2008-10-24 19:49:41 +00:00
|
|
|
dh_clean
|
|
|
|
|
2009-06-21 12:50:57 +00:00
|
|
|
install: build
|
2008-10-24 19:49:41 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-06-21 12:50:57 +00:00
|
|
|
dh_clean -k
|
2008-10-24 19:49:41 +00:00
|
|
|
dh_installdirs
|
2009-04-17 11:48:14 +00:00
|
|
|
$(MAKE) DESTDIR=$(CURDIR)/debian/i3status/ install
|
2009-06-21 12:50:57 +00:00
|
|
|
install -m 755 $(CURDIR)/i3status-wmii $(CURDIR)/debian/i3status/usr/bin/i3status-wmii
|
2009-08-18 19:29:44 +00:00
|
|
|
install -m 755 $(CURDIR)/i3status-xmobar $(CURDIR)/debian/i3status/usr/bin/i3status-xmobar
|
2009-08-17 22:11:04 +00:00
|
|
|
dh_link usr/share/man/man1/i3status.1 usr/share/man/man1/i3status-wmii.1
|
2008-10-24 19:49:41 +00:00
|
|
|
|
2009-06-21 12:50:57 +00:00
|
|
|
# Build architecture-independent files here.
|
2008-10-24 19:49:41 +00:00
|
|
|
binary-indep: build install
|
2009-06-21 12:50:57 +00:00
|
|
|
# We have nothing to do by default.
|
2009-06-17 19:33:54 +00:00
|
|
|
|
2009-06-21 12:50:57 +00:00
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
2008-10-24 19:49:41 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-06-21 12:50:57 +00:00
|
|
|
dh_installchangelogs
|
|
|
|
dh_installdocs
|
|
|
|
dh_installexamples
|
|
|
|
dh_installinit --name i3status-wmii
|
|
|
|
dh_installman
|
|
|
|
dh_link
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
2008-10-24 19:49:41 +00:00
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|