6 VERSION?=`grep 'define VERSION' UCI2WB.c | sed -e 's/.*"\(.*\)".*/\1/'`
8 ALL= uci2wb uci2wb.6.gz
13 $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) UCI2WB.c -o uci2wb
16 install -d -m0755 $(DESTDIR)/usr/games
17 cp -u ${srcdir}/uci2wb $(DESTDIR)/usr/games
18 install -d -m0755 $(DESTDIR)/usr/share/man/man6
19 cp -u ${srcdir}/uci2wb.6.gz $(DESTDIR)/usr/share/man/man6
21 uci2wb.6.gz: uci2wb.pod
22 pod2man -s 6 uci2wb.pod | gzip -9n > uci2wb.6.gz
28 rm -f ${ALL} *~ md5sums
31 install -d -m0755 UCI2WB
32 rm -f uci2wb.tar uci2wb.tar.gz
33 cp UCI2WB.c UCI2WB.rc rosetta.ico uci2wb.pod Makefile README.txt UCI2WB
34 md5sum UCI2WB/* > UCI2WB/md5sums
35 tar -cvvf uci2wb-$(VERSION).tar UCI2WB
36 gzip uci2wb-$(VERSION).tar
41 rm -f $(DESTDIR)/usr/share/man/man6/uci2wb.6.gz
42 rm -f $(DESTDIR)/usr/games/uci2wb