fenix-fox/Makefile

36 lines
1.1 KiB
Makefile
Raw Normal View History

2020-08-06 13:30:02 +00:00
USERCHROME_FILES := root.css urlbar.css appMenu.css
HOMEPAGE_FILES := head.html distro_links.html bottom.html
DISTRO := postmarketOS
2020-08-06 13:52:51 +00:00
DESTDIR :=
2020-08-06 13:30:02 +00:00
2020-08-06 13:52:51 +00:00
all: out/home.html out/userChrome.css
2020-08-06 13:30:02 +00:00
clean:
rm -rf out
out:
mkdir out
out/home.html: src/homepage/*.html out
( cd src/homepage; cat $(HOMEPAGE_FILES) ) > $@.temp
sed "s/@DISTRO@/$(DISTRO)/g" "$@.temp" > "$@"
rm "$@.temp"
2020-08-06 13:30:02 +00:00
out/userChrome.css: out src/userChrome/*.css
( cd src/userChrome; cat $(USERCHROME_FILES) ) > $@
install: all
2020-08-06 13:52:51 +00:00
install -Dm644 src/policies.json \
"$(DESTDIR)/etc/firefox/policies/policies.json"
install -Dm644 src/prefs.js \
2020-08-06 13:52:51 +00:00
"$(DESTDIR)/usr/lib/firefox/defaults/pref/mobile-config.js"
install -Dm644 "out/home.html" \
"$(DESTDIR)/usr/share/mobile-config-firefox/home.html"
install -Dm644 "out/userChrome.css" \
"$(DESTDIR)/etc/mobile-config-firefox/userChrome.css"
install -Dm755 "src/mobile-config-firefox.sh" \
"$(DESTDIR)/usr/bin/mobile-config-firefox"
install -Dm644 "src/mobile-config-firefox.desktop" \
"$(DESTDIR)/usr/mobile-config/applications/org.mozilla.firefox.desktop"
2020-08-06 13:52:51 +00:00
.PHONY: all clean install