initial commit
This commit is contained in:
commit
ee78eef527
17 changed files with 610 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue