# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# makefile for ui directory

DEPTH      = ../../../..
topsrcdir  = @top_srcdir@
VPATH      = @srcdir@
srcdir     = @srcdir@

DIRS = content

.PHONY: dirs $(DIRS)

all: dirs jar

dirs: $(DIRS)

$(DIRS):
	$(MAKE) -C $@

MYJARFILE = enigmail.jar

include $(DEPTH)/config/autoconf.mk

include $(topsrcdir)/config/config.mk

include $(srcdir)/../util/build.mk

jar:
	$(MAKEJAR)

clean:
	test -f $(DIST)/bin/chrome/$(MYJARFILE) && rm $(DIST)/bin/chrome/$(MYJARFILE) || echo ""
	test -d $(DIST)/bin/chrome/enigmail && rm -rf $(DIST)/bin/chrome/enigmail || echo ""
