Makefile 858 Bytes
Newer Older
1 2 3 4 5
# 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/.

XPI_MODULE	= enigmail
Patrick Brunschwig's avatar
Patrick Brunschwig committed
6
XPI_MODULE_VERS = 1.9
7 8 9 10 11 12 13

DEPTH		= .

include $(DEPTH)/config/autoconf.mk

DIRS = ipc public

Patrick Brunschwig's avatar
Patrick Brunschwig committed
14 15 16 17 18 19
DIRS += ui package lang

ifeq ($(TESTS),yes)
DIRS += check
endif

20
XPIFILE = $(XPI_MODULE)-$(XPI_MODULE_VERS).xpi
21 22 23

.PHONY: dirs $(DIRS)

24
all: dirs xpi
25 26 27 28 29 30 31

dirs: $(DIRS)

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

xpi:
32
	$(srcdir)/util/genxpi $(XPIFILE) $(XPI_MODULE_VERS) $(DIST) $(srcdir) $(XPI_MODULE) $(ENABLE_LANG)
33

34 35 36
check:
	util/checkFiles.py

37 38 39
clean:
	rm -f build/$(XPIFILE)
	for dir in $(DIRS); do \
40 41
		if [ "$${dir}x" != "checkx" ]; then \
		$(MAKE) -C $$dir clean; fi; \
42 43 44 45
	done

distclean: clean
	rm -rf build/*
46
	rm -f config/autoconf.mk config.log config.status