summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-20 17:01:38 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-20 17:01:38 +0000
commitb04bffc9c99045776abea011cc95f5819a939872 (patch)
tree3261825d06b381009b1c3216d8f11ddfc27ff1c1 /Makefile
parentda21ac965d4d6d3a136cf574d396f19bd2941efd (diff)
+index.html.in
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 51d93666..41dc6ae3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
-# $Id: Makefile,v 1.42 2007-11-20 12:00:16 nicm Exp $
+# $Id: Makefile,v 1.43 2007-11-20 17:01:38 nicm Exp $
.SUFFIXES: .c .o .y .h
-.PHONY: clean
+.PHONY: clean update-index.html upload-index.html
PROG= tmux
-VERSION= 0.1
+VERSION= 0.2
OS!= uname
REL!= uname -r
@@ -67,7 +67,7 @@ DISTDIR= ${PROG}-${VERSION}
DISTFILES= *.[chyl] Makefile GNUmakefile *.[1-9] NOTES TODO \
`find examples compat -type f -and ! -path '*CVS*'`
-CLEANFILES= ${PROG} *.o .depend *~ ${PROG}.core *.log
+CLEANFILES= ${PROG} *.o .depend *~ ${PROG}.core *.log index.html
.c.o:
${CC} ${CFLAGS} ${INCDIRS} -c ${.IMPSRC} -o ${.TARGET}
@@ -99,6 +99,13 @@ lint:
clean:
rm -f ${CLEANFILES}
+upload-index.html:
+ scp index.html nicm@shell.sf.net:index.html
+ ssh nicm@shell.sf.net sh update-index-tmux.sh
+
+update-index.html:
+ sed "s/%%VERSION%%/${VERSION}/g" index.html.in >index.html
+
install: all
${INSTALLBIN} ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
${INSTALLMAN} ${PROG}.1 ${DESTDIR}${PREFIX}/man/man1/