Makefile: add variable for config directory (MR 16)

For some distros (including Debian), the Firefox config directory can be
different from `/etc/firefox`. Adding a variable for this location so it can
be easily customized at build time.
This commit is contained in:
Arnaud Ferraris 2021-07-15 16:12:23 +02:00
parent 520fb81e16
commit bfa8376351
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -8,6 +8,7 @@ HOMEPAGE_FILES := head.html distro_links.html bottom.html
DISTRO := postmarketOS DISTRO := postmarketOS
DESTDIR := DESTDIR :=
FIREFOX_DIR := /usr/lib/firefox FIREFOX_DIR := /usr/lib/firefox
FIREFOX_CONFIG_DIR := /etc/firefox
all: out/home.html out/userChrome.css out/userContent.css all: out/home.html out/userChrome.css out/userContent.css
@ -29,7 +30,7 @@ out/userContent.css: $(USERCONTENT_FILES) out
install: all install: all
install -Dm644 src/policies.json \ install -Dm644 src/policies.json \
"$(DESTDIR)/etc/firefox/policies/policies.json" "$(DESTDIR)/$(FIREFOX_CONFIG_DIR)/policies/policies.json"
install -Dm644 src/mobile-config-prefs.js \ install -Dm644 src/mobile-config-prefs.js \
"$(DESTDIR)/$(FIREFOX_DIR)/defaults/pref/mobile-config-prefs.js" "$(DESTDIR)/$(FIREFOX_DIR)/defaults/pref/mobile-config-prefs.js"
install -Dm644 src/mobile-config-autoconfig.js \ install -Dm644 src/mobile-config-autoconfig.js \