install -d $(BINPREFIX)
install -m 755 $(SRCDIR)/vimb $(BINPREFIX)/vimb
@# extension
- install -d $(EXTPREFIX)
- install -m 644 $(SRCDIR)/webextension/$(EXTTARGET) $(EXTPREFIX)/$(EXTTARGET)
+ install -d $(LIBDIR)
+ install -m 644 $(SRCDIR)/webextension/$(EXTTARGET) $(LIBDIR)/$(EXTTARGET)
@# man page
install -d $(MANPREFIX)/man1
@sed -e "s!VERSION!$(VERSION)!g" \
install -m 644 vimb.desktop $(DOTDESKTOPPREFIX)/vimb.desktop
uninstall:
- $(RM) $(BINPREFIX)/vimb $(DESTDIR)$(MANDIR)/man1/vimb.1 $(EXTPREFIX)/$(EXTTARGET)
+ $(RM) $(BINPREFIX)/vimb $(DESTDIR)$(MANDIR)/man1/vimb.1 $(LIBDIR)/$(EXTTARGET)
clean: $(SRCDIR).subdir-clean
MANPREFIX := $(DESTDIR)$(PREFIX)/share/man
EXAMPLEPREFIX := $(DESTDIR)$(PREFIX)/share/vimb/example
DOTDESKTOPPREFIX := $(DESTDIR)$(PREFIX)/share/applications
-RUNPREFIX := $(DESTDIR)$(PREFIX)
-EXTPREFIX := $(RUNPREFIX)/lib/vimb
+LIBDIR := $(DESTDIR)$(PREFIX)/lib/vimb
+RUNPREFIX := $(PREFIX)
+EXTENSIONDIR := $(RUNPREFIX)/lib/vimb
# define some directories
SRCDIR = src
# setup general used CFLAGS
CFLAGS += -std=c99 -pipe -Wall
#CPPFLAGS += -pedantic
-CPPFLAGS += -DVERSION=\"${VERSION}\" -DEXTPREFIX=\"${EXTPREFIX}\"
+CPPFLAGS += -DVERSION=\"${VERSION}\" -DEXTENSIONDIR=\"${EXTENSIONDIR}\"
CPPFLAGS += -DPROJECT=\"vimb\" -DPROJECT_UCFIRST=\"Vimb\"
CPPFLAGS += -D_XOPEN_SOURCE=500
CPPFLAGS += -DGSEAL_ENABLE
GVariant *vdata;
/* Setup the extension directory. */
- webkit_web_context_set_web_extensions_directory(webctx, EXTPREFIX);
+ webkit_web_context_set_web_extensions_directory(webctx, EXTENSIONDIR);
name = ext_proxy_init();
vdata = g_variant_new("(ms)", name);