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
24 xboard -ncp -uxiAdapter {uci2wb -%variant "%fcp" "%fd"} -autoClose || true
26 uci2wb.6.gz: uci2wb.pod
27 pod2man -s 6 uci2wb.pod | gzip -9n > uci2wb.6.gz
33 rm -f ${ALL} *~ md5sums
36 install -d -m0755 UCI2WB
37 rm -f uci2wb.tar uci2wb.tar.gz
38 cp UCI2WB.c UCI2WB.rc rosetta.ico uci2wb.pod Makefile README.txt UCI2WB
39 md5sum UCI2WB/* > UCI2WB/md5sums
40 tar -cvvf uci2wb-$(VERSION).tar UCI2WB
41 gzip uci2wb-$(VERSION).tar
46 rm -f $(DESTDIR)$(datadir)/man/man6/uci2wb.6.gz
47 rm -f $(DESTDIR)$(bindir)/uci2wb