mirror of
				https://codeberg.org/claui/mobile-config-firefox.git
				synced 2025-11-03 20:15:56 +00:00 
			
		
		
		
	Adjust the license to be able to upstream adjustments from this repository to upstream Firefox. I've asked all contributors if they are fine with the license change in the related issue. Fixes: https://gitlab.com/postmarketOS/mobile-config-firefox/-/issues/31
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# Copyright 2021 Oliver Smith
 | 
						|
# SPDX-License-Identifier: MPL-2.0
 | 
						|
 | 
						|
HEADER_FILE := src/common/header.css
 | 
						|
USERCHROME_FILES := $(HEADER_FILE) $(sort $(wildcard src/userChrome/*.css))
 | 
						|
USERCONTENT_FILES := $(HEADER_FILE) $(sort $(wildcard src/userContent/*.css))
 | 
						|
DESTDIR :=
 | 
						|
FIREFOX_DIR := /usr/lib/firefox
 | 
						|
FIREFOX_CONFIG_DIR := /etc/firefox
 | 
						|
 | 
						|
all: out/userChrome.css out/userContent.css
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -rf out
 | 
						|
out:
 | 
						|
	mkdir out
 | 
						|
 | 
						|
out/userChrome.css: $(USERCHROME_FILES) out
 | 
						|
	cat $(USERCHROME_FILES) > $@
 | 
						|
 | 
						|
out/userContent.css: $(USERCONTENT_FILES) out
 | 
						|
	cat $(USERCONTENT_FILES) > $@
 | 
						|
 | 
						|
install: all
 | 
						|
	install -Dm644 src/policies.json \
 | 
						|
		"$(DESTDIR)/$(FIREFOX_CONFIG_DIR)/policies/policies.json"
 | 
						|
	install -Dm644 src/mobile-config-prefs.js \
 | 
						|
		"$(DESTDIR)/$(FIREFOX_DIR)/defaults/pref/mobile-config-prefs.js"
 | 
						|
	install -Dm644 src/mobile-config-autoconfig.js \
 | 
						|
		"$(DESTDIR)/$(FIREFOX_DIR)/mobile-config-autoconfig.js"
 | 
						|
	install -Dm644 "out/userChrome.css" \
 | 
						|
		"$(DESTDIR)/etc/mobile-config-firefox/userChrome.css"
 | 
						|
	install -Dm644 "out/userContent.css" \
 | 
						|
		"$(DESTDIR)/etc/mobile-config-firefox/userContent.css"
 | 
						|
	install -Dm644 org.postmarketos.mobile_config_firefox.metainfo.xml \
 | 
						|
		"$(DESTDIR)/usr/share/metainfo/org.postmarketos.mobile_config_firefox.metainfo.xml"
 | 
						|
 | 
						|
.PHONY: all clean install
 |