~djl/bookmark-keys

b675c962872bb2d123aa776a9388b0dee0cfa2d8 — David Logie 11 years ago 0b6d953
Bring back Makefile.
1 files changed, 16 insertions(+), 0 deletions(-)

A Makefile
A Makefile => Makefile +16 -0
@@ 0,0 1,16 @@
EXTENSION="`basename $(PWD)`"
VERSION=`grep "em:version" $(PWD)/src/install.rdf | sed -n -e 's/<.*>\(.*\)<\/.*>/\1/p' | sed 's/^[ \t]*//'`
FILENAME="$(EXTENSION)-$(VERSION).xpi"

help:
	@echo 'Commonly used make targets:'
	@echo '  build      Builds a complete XPI file from "src" dir'
	@echo '  release    Builds a complete XPI and sets up the symlink'

build:
	@echo "Building $(FILENAME)..."
	@cd "src" && zip -rq "$(FILENAME)" *
	@mv "src/$(FILENAME)" .
	@echo "Done!"

.PHONY: help build