Some exception handling fixes.
[clw.git] / Makefile
blobdbeeb51da29500038265584cb3f78b032effad88
1 #!/usr/bin/make -f
3 DESTDIR=
4 PREFIX=/usr/local
5 LIBDIR=$(PREFIX)/share/clarkway
6 BINDIR=$(PREFIX)/bin
7 MANDIR=$(PREFIX)/share/man/man1
8 MKDIR=mkdir -p
10 help:
11 @echo "This is a ruby program which needs not be built."
12 @echo "Use \`make install' to perform a local installation."
14 doc:
15 make -C doc
17 install:
18 install -d $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
19 sed -e "s#\$$: << \".*\"#\$$: << \"$(LIBDIR)\"#" clw >clw.install
20 install clw.install $(DESTDIR)$(BINDIR)/clw
21 -rm clw.install
22 cp -R lib/clw $(DESTDIR)$(LIBDIR)
23 cp doc/clw.1 $(DESTDIR)$(MANDIR)/clw.1
25 uninstall:
26 -rm $(DESTDIR)$(BINDIR)/clw
27 -rm -r $(DESTDIR)$(LIBDIR)
28 -rm $(DESTDIR)$(MANDIR)/clw.1
30 clean:
31 -rm clw.install
33 .PHONY: help doc install uninstall clean