Disable *all* backups when --no-backups used
[wiggle/upstream.git] / demo.orig / Makefile
blob831723c98c85ce47fec189524c5ea409cb4f8795
2 # Note on my Mobile Pentium II, -march=pentium2 delivers twice the performance of i386
3 #OptDbg=-O3
4 #OptDbg=-O3 -march=pentium2
5 OptDbg=-ggdb
6 CFLAGS=$(OptDbg) -Wall -Werror
8 # STRIP = -s
9 INSTALL = /usr/bin/install
10 DESTDIR =
11 BINDIR = /usr/bin
12 MANDIR = /usr/share/man
13 MAN1DIR = $(MANDIR)/man1
14 MAN5DIR = $(MANDIR)/man5
15 LDLIBS=-lncurses
17 all: wiggle wiggle.man test
19 vpatch : vpatch.o extract.o split.o diff.o
22 wiggle : wiggle.o load.o split.o extract.o diff.o bestmatch.o ReadMe.o merge.o
23 wiggle.o load.o split.o extract.o diff.o bestmatch.o ReadMe.o merge.o : wiggle.h
25 test: wiggle dotest
26 sh dotest
28 wiggle.man : wiggle.1
29 nroff -man wiggle.1 > wiggle.man
31 clean:
32 rm -f *.o *.man wiggle .version* version
33 find . -name core -o -name '*.tmp*' -o -name .tmp | xargs rm -f
35 install : wiggle wiggle.1
36 $(INSTALL) -D $(STRIP) -m 755 wiggle $(DESTDIR)$(BINDIR)/wiggle
37 $(INSTALL) -D -m 644 wiggle.1 $(DESTDIR)$(MAN1DIR)/wiggle.1
39 version : ReadMe.c wiggle.1
40 @rm -f version
41 @sed -n -e 's/.*wiggle - v\([0-9.]*\) - .*/\1/p' ReadMe.c > .version-readme
42 @sed -n -e 's/.*WIGGLE 1 "" v\([0-9.]*\)$$/\1/p' wiggle.1 > .version-man
43 @cmp -s .version-readme .version-man && cat .version-man > version || { echo Inconsistant versions.; exit 1;}
45 dist : test clean version
46 mkdir -p DIST
47 rm -f DIST/wiggle-`cat version`
48 ln -s .. DIST/wiggle-`cat version`
49 tar czvf DIST/wiggle-`cat version`.tar.gz -h -C DIST --exclude RCS --exclude DIST wiggle-`cat version`
50 rm -f DIST/wiggle-`cat version`
52 v : version
53 cat version