wmii/Makefile

31 lines
784 B
Makefile
Raw Normal View History

ROOT=.
include $(ROOT)/mk/hdr.mk
include $(ROOT)/mk/wmii.mk
2005-11-18 18:54:58 +03:00
DIRS = \
doc \
man \
lib \
cmd \
rc \
alternative_wmiircs
2005-11-18 18:54:58 +03:00
DOCS = README \
LICENSE
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
include $(ROOT)/mk/dir.mk
2007-05-21 05:22:12 +04:00