4 bindir=$(exec_prefix)/bin
5 datadir=$(prefix)/share
10 VERSION?=`grep 'define VERSION' UCI2WB.c | sed -e 's/.*"\(.*\)".*/\1/'`
12 ALL= uci2wb uci2wb.6.gz
17 $(CC) $(CFLAGS) $(CPPFLAGS) UCI2WB.c -o uci2wb $(LDFLAGS)
20 install -d -m0755 $(DESTDIR)$(bindir)
21 cp -u ${srcdir}/uci2wb $(DESTDIR)$(bindir)
22 install -d -m0755 $(DESTDIR)$(datadir)/man/man6
23 cp -u ${srcdir}/uci2wb.6.gz $(DESTDIR)$(datadir)/man/man6
25 uci2wb.6.gz: uci2wb.pod
26 pod2man -s 6 uci2wb.pod | gzip -9n > uci2wb.6.gz
32 rm -f ${ALL} *~ md5sums
35 install -d -m0755 UCI2WB
36 rm -f uci2wb.tar uci2wb.tar.gz
37 cp UCI2WB.c UCI2WB.rc rosetta.ico uci2wb.pod Makefile README.txt UCI2WB
38 md5sum UCI2WB/* > UCI2WB/md5sums
39 tar -cvvf uci2wb-$(VERSION).tar UCI2WB
40 gzip uci2wb-$(VERSION).tar
45 rm -f $(DESTDIR)$(datadir)/man/man6/uci2wb.6.gz
46 rm -f $(DESTDIR)$(bindir)/uci2wb