firefox/: Add some Firefox configuration stuff.
[profile] / Makefile
index 0536c5d..222d6ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -330,6 +330,31 @@ endif
 endif
 
 ###--------------------------------------------------------------------------
+### Firefox things.
+
+ifeq ($(FIREFOX),t)
+
+out/:
+       $(call v_tag,MKDIR)mkdir $@
+
+out/firefox/: | out/
+       $(call v_tag,MKDIR)mkdir $@
+
+clean::; rm -rf out/
+
+all:: out/firefox/smartup-gestures.config
+out/firefox/smartup-gestures.config: firefox/smartup-gestures.json | out/firefox/
+       $(call v_tag,BLOB)\
+               jq -c . $< | bincode base64 >$@.new && mv $@.new $@
+
+all:: out/firefox/stylus.json
+out/firefox/stylus.json: firefox/stylus/ firefox/stylus/*.css | out/firefox/
+       $(call v_tag,IMPLODE)\
+               firefox/implode-stylus firefox/stylus/ >$@.new && \
+                       mv $@.new $@
+endif
+
+###--------------------------------------------------------------------------
 ### General symlinking.
 
 misclink-source                 = $(HERE)/$(or $($1_SRC), $1)