2007-03-26 08:48:00 +04:00
|
|
|
ROOT=.
|
|
|
|
include ${ROOT}/mk/hdr.mk
|
2009-10-13 10:40:45 +04:00
|
|
|
include ${ROOT}/mk/wmii.mk
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2007-05-21 05:22:12 +04:00
|
|
|
PDIRS = \
|
2009-10-13 10:40:45 +04:00
|
|
|
doc \
|
|
|
|
man \
|
2008-01-18 01:50:35 +03:00
|
|
|
cmd \
|
|
|
|
libwmii_hack \
|
|
|
|
rc \
|
2009-10-13 10:40:45 +04:00
|
|
|
alternative_wmiircs
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2007-06-01 05:05:59 +04:00
|
|
|
DIRS = \
|
2008-01-18 01:50:35 +03:00
|
|
|
libbio \
|
|
|
|
libfmt \
|
|
|
|
libregexp \
|
|
|
|
libutf \
|
2009-10-13 10:40:45 +04:00
|
|
|
$(PDIRS)
|
2007-05-21 05:22:12 +04:00
|
|
|
|
2009-10-14 05:37:04 +04:00
|
|
|
DOCS = README \
|
|
|
|
LICENSE
|
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"}'; \
|
|
|
|
fi >debian/changelog
|
2009-10-26 00:05:55 +03:00
|
|
|
dpkg-buildpackage -rfakeroot -b -nc
|
2009-10-16 11:28:54 +04:00
|
|
|
[ -d .hg ] && hg revert debian/changelog
|
2007-06-01 11:10:42 +04:00
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
include ${ROOT}/mk/dir.mk
|
2009-10-13 10:40:45 +04:00
|
|
|
INSTDIRS = $(PDIRS)
|
2007-05-21 05:22:12 +04:00
|
|
|
|