Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commite0114bf86ee96b36268ddd39059cebfe0cae1d39 (patch)
Author
 rliang <ricardoliang@gmail.com>
2019-03-11 14:30:52 -0300
Committer
 rliang <ricardoliang@gmail.com>
2019-03-11 14:30:52 -0300
Files01de09dc31a9392335a2d856eff5bd854b3d14c0
goody-scripts-e0114bf86ee96b36268ddd39059cebfe0cae1d39.tar
goody-scripts-e0114bf86ee96b36268ddd39059cebfe0cae1d39.tar.gz
goody-scripts-e0114bf86ee96b36268ddd39059cebfe0cae1d39.zip
Parent0d938a1f2eaa027bdec4e515de1e2983dad11574 (diff)
Add installation steps for debian-based
2 files changed, 12 insertions, 4 deletions
-rw-r--r--Makefile6
-rw-r--r--README.md10
diff --git a/Makefile b/Makefile
index 78a0229..ca85ea8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
TARGET := libephyscripts.so
PREFIX ?= /usr
-DESTDIR ?= lib/epiphany/web-extensions
+DESTDIR ?= lib/epiphany
CFLAGS ?= -O2 -pipe -march=native -Wall -Wextra
LDFLAGS ?= -s
CFLAGS += $(shell pkg-config --cflags webkit2gtk-web-extension-4.0)
@@ -10,7 +10,7 @@ $(TARGET): $(wildcard *.c)
$(CC) -fPIC $(CFLAGS) -shared $(LDFLAGS) -o $@ $^
install: $(TARGET)
- install -D $^ $(PREFIX)/$(DESTDIR)/$(TARGET)
+ install -D $^ $(PREFIX)/$(DESTDIR)/web-extensions/$(TARGET)
uninstall:
- rm -f $(PREFIX)/$(DESTDIR)/$(TARGET)
+ rm -f $(PREFIX)/$(DESTDIR)/web-extensions/$(TARGET)
diff --git a/README.md b/README.md
index 8088b76..110ced1 100644
--- a/README.md
+++ b/README.md
@@ -16,9 +16,17 @@ Just place your scripts under either:
# Requirements
* `pkg-config`
-* `webkit2gtk-web-extension-4.0`
+* `libwebkit2gtk-4.0-dev` or `webkit2gtk-web-extension-4.0`
# Installation
+
+For Debian-based distributions:
+```sh
+make
+sudo make DESTDIR=lib/x86_64-linux-gnu/epiphany-browser install
+```
+
+Otherwise:
```sh
make
sudo make install