wmii/Makefile

39 lines
856 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
2007-05-21 05:22:12 +04:00
PDIRS = \
doc \
man \
cmd \
libwmii_hack \
rc \
alternative_wmiircs
2005-11-18 18:54:58 +03:00
2007-06-01 05:05:59 +04:00
DIRS = \
libbio \
libfmt \
libregexp \
libutf \
$(PDIRS)
2007-05-21 05:22:12 +04: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"}'; \
fi >debian/changelog
2007-06-01 11:10:42 +04:00
dpkg-buildpackage -rfakeroot
2009-10-16 11:28:54 +04:00
[ -d .hg ] && hg revert debian/changelog
2007-06-01 11:10:42 +04:00
include ${ROOT}/mk/dir.mk
INSTDIRS = $(PDIRS)
2007-05-21 05:22:12 +04:00