2007-03-26 08:48:00 +04:00
|
|
|
ROOT=.
|
2010-05-23 04:55:16 +04:00
|
|
|
include $(ROOT)/mk/hdr.mk
|
|
|
|
include $(ROOT)/mk/wmii.mk
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2010-05-23 04:55:16 +04:00
|
|
|
DIRS = \
|
2009-10-13 10:40:45 +04:00
|
|
|
doc \
|
|
|
|
man \
|
2010-05-23 04:55:16 +04:00
|
|
|
lib \
|
2008-01-18 01:50:35 +03:00
|
|
|
cmd \
|
|
|
|
rc \
|
2009-10-13 10:40:45 +04:00
|
|
|
alternative_wmiircs
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2010-06-12 07:48:29 +04:00
|
|
|
DOCS = FAQ \
|
|
|
|
LICENSE \
|
|
|
|
README
|
2007-04-20 07:27:26 +04:00
|
|
|
|
2007-06-01 11:10:42 +04:00
|
|
|
deb-dep:
|
2009-10-16 11:28:54 +04:00
|
|
|
IFS=', '; \
|
|
|
|
apt-get -qq install build-essential $$(sed -n 's/([^)]*)//; s/^Build-Depends: \(.*\)/\1/p' debian/control)
|
2007-06-01 11:10:42 +04:00
|
|
|
|
2009-10-16 11:28:54 +04:00
|
|
|
DISTRO = unstable
|
2007-06-01 11:10:42 +04:00
|
|
|
deb:
|
2009-10-16 11:28:54 +04:00
|
|
|
if [ -d .hg ]; \
|
|
|
|
then hg tip --template 'wmii-hg ($(VERSION)) $(DISTRO); urgency=low\n\n * {desc}\n\n -- {author} {date|rfc822date}\n'; \
|
|
|
|
else awk 'BEGIN{"date"|getline; print "wmii-hg ($(VERSION)) $(DISTRO); urgency=low\n\n * Upstream build\n\n -- Kris Maglione <jg@suckless.org> "$$0"\n"}'; \
|
2010-05-24 18:14:02 +04:00
|
|
|
fi >debian/changelog || true
|
2009-10-26 00:05:55 +03:00
|
|
|
dpkg-buildpackage -rfakeroot -b -nc
|
2010-05-24 18:14:02 +04:00
|
|
|
[ -d .hg ] && hg revert debian/changelog || true
|
2007-06-01 11:10:42 +04:00
|
|
|
|
2010-05-23 04:55:16 +04:00
|
|
|
include $(ROOT)/mk/dir.mk
|
2007-05-21 05:22:12 +04:00
|
|
|
|