XPI_NAME:=$(shell sed -nr '/.*([^<]+)<\/em:id>.*/ {s//..\/\1.xpi/p;q}' install.rdf) all: $(XPI_NAME) $(XPI_NAME): chrome.manifest install.rdf COPYING $(shell find chrome/ -type f) zip $@ $^ clean: rm -f $(XPI_NAME) .PHONY: all clean