@$(MAKE) $(MFLAGS) -C tests clean
install: $(TARGET) $(DOCDIR)/$(MAN1)
- install -d $(DESTDIR)$(BINDIR)
+ install -D -m 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
+ install -d $(DESTDIR)$(EXAMPLEDIR)
+ cp -r examples/* $(DESTDIR)$(EXAMPLEDIR)
install -d $(DESTDIR)$(MANDIR)/man1
- install -m 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
- @echo "install -m 644 $(SRCDIR)/$(MAN1) $(DESTDIR)$(MANDIR)/man1/$(MAN1)"
- @sed -e "s/VERSION/$(VERSION)/g" \
- -e "s/DATE/`date +'%m %Y'`/g" < $(DOCDIR)/$(MAN1) > $(DESTDIR)$(MANDIR)/man1/$(MAN1)
- @chmod 644 $(DESTDIR)$(MANDIR)/man1/$(MAN1)
+ @sed -e "s!VERSION!$(VERSION)!g" \
+ -e "s!PREFIX!$(PREFIX)!g" \
+ -e "s!DATE!`date +'%m %Y'`!g" $(DOCDIR)/$(MAN1) > $(DESTDIR)$(MANDIR)/man1/$(MAN1)
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
#----------------user/install options----------------
VERSION = 2.9
-PROJECT = vimb
-PREFIX ?= /usr/local
-BINDIR ?= $(PREFIX)/bin
-MANDIR ?= $(PREFIX)/share/man
+PROJECT = vimb
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man
+EXAMPLEDIR ?= $(PREFIX)/share/$(PROJECT)/examples
#----------------compile options---------------------
.TP
.I $XDG_CONFIG_HOME/vimb/
Default directory for configuration data.
-.PP
.RS
.PD 0
.TP
.TP
.I $XDG_RUNTIME_DIR/vimb/socket/
Directory where the control sockets are placed.
+.PP
+There are also some sample scripts installed together with vimb under
+PREFIX/share/vimb/examples.
.SH ENVIRONMENT
.TP
.B http_proxy