From 8d5c17af18b8200de164d96f6458a274cbefa31c Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Sat, 14 Mar 2020 11:21:47 +0100 Subject: Makefile: Install compiled web extension and user-script --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4f8db20..717d1ca 100644 --- a/Makefile +++ b/Makefile @@ -10,9 +10,11 @@ INSTALL_DATA = $(INSTALL) -m 644 prefix = /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin +libdir = $(exec_prefix)/lib datarootdir = $(prefix)/share mandir = $(datarootdir)/man man1dir = $(mandir)/man1 +datadir = $(prefix)/share .PHONY: all clean install installdirs @@ -40,9 +42,15 @@ install: all installdirs $(INSTALL_DATA) man1/$(__NAME__).1 $(DESTDIR)$(man1dir)/$(__NAME__).1 $(INSTALL_DATA) man1/$(__NAME__).usage.1 \ $(DESTDIR)$(man1dir)/$(__NAME__).usage.1 + $(INSTALL_PROGRAM) we_adblock.so \ + $(DESTDIR)$(libdir)/$(__NAME__)/web_extensions/we_adblock.so + $(INSTALL_PROGRAM) user-scripts/hints.js \ + $(DESTDIR)$(datadir)/$(__NAME__)/user-scripts/hints.js installdirs: - mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) + mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) \ + $(DESTDIR)$(libdir)/$(__NAME__)/web_extensions \ + $(DESTDIR)$(datadir)/$(__NAME__)/user-scripts clean: rm -f $(__NAME__) we_adblock.so -- cgit v1.2.3