This commit is contained in:
jun7 2023-02-12 08:19:56 +09:00
parent 616d30ab98
commit ee19b643ec

View File

@ -3,7 +3,7 @@ PREFIX ?= /usr
WEBKIT ?= webkit2gtk-4.1 WEBKIT ?= webkit2gtk-4.1
APPDIR ?= wyebrowser APPDIR ?= wyebrowser
APPVER ?= /4.1 APPVER ?= /4.1
EXTENSION_DIR ?= $(PREFIX)/lib/$(APPDIR)$(APPVER) EXTENSION_DIR ?= $(PREFIX)/lib/$(APPDIR)
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
CFLAGS += -Wall CFLAGS += -Wall
else else
@ -42,11 +42,11 @@ clean:
install: install:
install -Dm755 wyebab $(DESTDIR)$(PREFIX)/bin/wyebab install -Dm755 wyebab $(DESTDIR)$(PREFIX)/bin/wyebab
install -Dm755 adblock.so $(DESTDIR)$(EXTENSION_DIR)/adblock.so install -Dm755 adblock.so $(DESTDIR)$(EXTENSION_DIR)$(APPVER)/adblock.so
uninstall: uninstall:
rm -f $(PREFIX)/bin/wyebab rm -f $(PREFIX)/bin/wyebab
rm -f $(EXTENSION_DIR)/adblock.so rm -f $(EXTENSION_DIR)$(APPVER)/adblock.so
-rmdir $(EXTENSION_DIR)$(APPVER) -rmdir $(EXTENSION_DIR)$(APPVER)
-rmdir $(EXTENSION_DIR) -rmdir $(EXTENSION_DIR)