summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9c41ab3a09db1ef2aac426f792556806911e9d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all clean install uninstall

files := config.js
files += defaults/pref/config-prefs.js
files += legacy.manifest
files += legacy/BootstrapLoader.jsm
files += legacy/RDFDataSource.jsm
files += legacy/RDFManifestConverter.jsm
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)