logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: e352d548e49bb448ba2b1db46a61163f65ec6abb
parent: b67d402a1b1fefe3b89a2319fea231eeab8ac49a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 15 Dec 2019 18:10:11 +0100

Install docs

Diffstat:

MMakefile10+++++++++-
Mversion.sh1-
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,8 +1,12 @@ .POSIX: +VERSION = 0.4.0 +VERSION_FULL = $(VERSION)$(shell ./version.sh) + PREFIX = /usr/local BINDIR = $(PREFIX)/bin MANDIR = $(PREFIX)/share/man +DOCDIR = $(PREFIX)/share/doc/badwolf-$(VERSION) DATADIR = $(PREFIX)/share/badwolf APPSDIR = $(PREFIX)/share/applications PACKAGE = Badwolf @@ -11,10 +15,11 @@ DEPS = gtk+-3.0 webkit2gtk-4.0 libsoup-2.4 OBJS = keybindings.o badwolf.o EXE = badwolf TRANS = fr.mo +DOCS = usr.bin.badwolf README.md KnowledgeBase.md CC = cc CFLAGS = -g -Wall -Wextra -Wconversion -Wsign-conversion -CDEPS = `pkg-config --cflags $(DEPS)` -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_DEFAULT_SOURCE -DVERSION=\"$(shell ./version.sh)\" +CDEPS = `pkg-config --cflags $(DEPS)` -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_DEFAULT_SOURCE -DVERSION=\"$(VERSION_FULL)\" LIBS = `pkg-config --libs $(DEPS)` all: $(EXE) $(TRANS) @@ -47,6 +52,9 @@ install: all cp -r locale/ $(DESTDIR)$(DATADIR) mkdir -p $(DESTDIR)$(APPSDIR) cp -p badwolf.desktop $(DESTDIR)$(APPSDIR)/ + mkdir -p $(DESTDIR)$(DOCDIR) + cp -p $(DOCS) $(DESTDIR)$(DOCDIR)/ + @printf '\nNote: An example AppArmor profile has been installed at '$(DOCDIR)/usr.bin.badwolf'\n' clean: rm -fr locale $(OBJS) $(EXE) diff --git a/version.sh b/version.sh @@ -1,5 +1,4 @@ #!/bin/sh -echo -n '0.4.0' hash=$(git --git-dir="$(dirname $0)/.git" rev-parse --short HEAD 2>/dev/null) if [ -n "$hash" ]