extract: removed unused variable: lineno
[wiggle/upstream.git] / demo / Makefile
bloba8652dee4a2816882cc9f45aad8fbd82177b9609
1 # Note on my Mobile Pentium II, -march=pentium2 delivers twice the performance of i386
2 #OptDbg=-O3
3 #OptDbg=-O3 -march=pentium2
4 CFLAGS=$(OptDbg) -Wall -Werror
6 # STRIP =
7 INSTALL = /usr/bin/install
8 DESTDIR =
9 BINDIR = /usr/bin
10 MANDIR = /var/share/man
11 MAN1DIR = $(MANDIR)/man1
12 MAN5DIR = $(MANDIR)/man5
13 LDLIBS=-lncurses
15 all: wiggle wiggle.man test
17 vpatch : vpatch.o extract.o split.o diff.o
20 # comment
21 wiggle : wiggle.o load.o split.o extract.o diff.o bestmatch.o ReadMe.o merge.o
22 wiggle.o load.o split.o extract.o diff.o bestmatch.o ReadMe.o merge.o : wiggle.h
24 test: wiggle dotest
25 sh dotest
27 wiggle.man : wiggle.1
28 nroff -man wiggle.1 > wiggle.man
30 clean:
31 rm -f *.o *.man wiggle .version* version
32 find . -name core -o -name '*.tmp*' -o -name .tmp | xargs rm -f
34 install : wiggle wiggle.1
35 $(INSTALL) -D $(STRIP) -m 755 wiggle $(DESTDIR)$(BINDIR)/wiggle
36 $(INSTALL) -D -m 644 wiggle.1 $(DESTDIR)$(MAN1DIR)/wiggle.1
38 version : ReadMe.c wiggle.1 Readme.c
39 @rm -f version
40 @sed -n -e 's/.*wiggle - v\([0-9.]*\) - .*/\1/p' ReadMe.c > .version-readme
41 @sed -n -e 's/.*WIGGLE 1 "" v\([0-9.]*\)$$/\1/p' wiggle.1 > .version-man
42 @cmp -s .version-readme .version-man && cat .version-man > version || { echo Inconsistant versions.; exit 1;}
44 dist : test clean version Test
45 mkdir -p DIST
46 rm -f DIST/wiggle-`cat version`
47 ln -s .. DIST/wiggle-`cat version`
48 tar czvf DIST/wiggle-`cat version`.tar.gz -h -C DIST --exclude RCS --exclude DIST wiggle-`cat version`
49 rm -f DIST/wiggle-`cat version`
51 v : version
52 cat version