initial commit
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
MOZ_NATIVE=$(HOME)/.mozilla/native-messaging-hosts
|
||||
|
||||
release: xpi
|
||||
|
||||
xpi:
|
||||
zip -r misctils.xpi *.js manifest.json icons/ startpage/
|
||||
|
||||
startpage:
|
||||
./genfs.sh
|
||||
|
||||
install:
|
||||
mkdir -p $(MOZ_NATIVE)
|
||||
cp nativemsg/bg.py $(MOZ_NATIVE)
|
||||
|
||||
# make the home directory work for all users
|
||||
sed "s@HOME@$(HOME)@" nativemsg/bg_app.json > $(MOZ_NATIVE)/bg_app.json
|
||||
chmod +x $(MOZ_NATIVE)/bg.py
|
||||
|
||||
uninstall:
|
||||
rm $(MOZ_NATIVE)/bg_app.json $(MOZ_NATIVE)/bg.py
|
||||
|
||||
clean:
|
||||
rm misctils.xpi
|
||||
|
||||
.PHONY: startpage
|
Reference in New Issue
Block a user