Skip to content

Commit

Permalink
add Makefile for building/installing on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed May 14, 2018
1 parent def575f commit b67ccd5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.xpi
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


PREFIX := /usr
DATADIR := $(PREFIX)/share

# UUID below is for Thunderbird
TB_EXT_DIR := $(DATADIR)/mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}

all: [email protected]

[email protected]: $(shell find xul-ext)
cd xul-ext && zip --exclude /.tx* -r $(CURDIR)/$@ .

clean:
rm -f $(CURDIR)/*.xpi

install: all
install -d $(DESTDIR)$(TB_EXT_DIR)
install --mode=644 *.xpi $(DESTDIR)$(TB_EXT_DIR)

0 comments on commit b67ccd5

Please sign in to comment.