-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
28 lines (22 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: all clean install uninstall diff
files := config.js
files += defaults/pref/config-prefs.js
files += legacy.manifest
files += legacy/BootstrapLoader.sys.mjs
files += legacy/RDFDataSource.sys.mjs
files += legacy/RDFManifestConverter.sys.mjs
archive = legacyfox.tar.gz
DESTDIR ?= $(wildcard /usr/lib??/firefox/)
all: $(archive)
$(archive): $(files)
tar czf $@ -- $(files)
clean:
rm -f $(archive)
install: $(archive)
tar xzf $(archive) -C "$(DESTDIR)"
uninstall:
cd "$(DESTDIR)" && rm -rf -- $(files)
diff:
@curl -s https://hg.mozilla.org/comm-central/raw-file/8a37a90aab4ec643fce1e1ab33984613ce0b492d/common/src/BootstrapLoader.jsm | diff --color -u - legacy/BootstrapLoader.sys.mjs ||:
@curl -s https://hg.mozilla.org/comm-central/raw-file/8a37a90aab4ec643fce1e1ab33984613ce0b492d/common/src/RDFDataSource.jsm | diff --color -u - legacy/RDFDataSource.sys.mjs ||:
@curl -s https://hg.mozilla.org/comm-central/raw-file/8a37a90aab4ec643fce1e1ab33984613ce0b492d/common/src/RDFManifestConverter.jsm | diff --color -u - legacy/RDFManifestConverter.sys.mjs ||: