tmate/dist.mk

33 lines
913 B
Makefile
Raw Normal View History

2009-05-16 23:56:38 +02:00
# $Id: dist.mk,v 1.3 2009-05-16 21:56:38 nicm Exp $
2009-05-14 09:51:25 +02:00
VERSION= 0.8
2009-05-14 09:48:42 +02:00
DISTDIR= tmux-${VERSION}
DISTFILES= *.[ch] Makefile GNUmakefile configure tmux.1 \
NOTES TODO CHANGES FAQ \
`find examples compat -type f -and ! -path '*CVS*'`
dist:
2009-05-16 23:56:38 +02:00
(./configure && make clean-all)
2009-05-14 09:48:42 +02:00
grep '^#FDEBUG=' Makefile
grep '^#FDEBUG=' GNUmakefile
[ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \
uniq -u`" = "" ]
tar -zc \
-s '/.*/${DISTDIR}\/\0/' \
-f ${DISTDIR}.tar.gz ${DISTFILES}
upload-index.html: update-index.html
scp index.html images/*.png \
nicm,tmux@web.sf.net:/home/groups/t/tm/tmux/htdocs
rm -f images/small-*
update-index.html:
(cd images && \
rm -f small-* && \
for i in *.png; do \
convert "$$i" -resize 200x150 "small-$$i"; \
done \
)
sed "s/%%VERSION%%/${VERSION}/g" index.html.in >index.html