1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# ***** BEGIN LICENSE BLOCK *****
# Copyright (C) 2007 Andris Pavenis <andris.pavenis@iki.fi>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ***** END LICENSE BLOCK *****
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(srcdir)/mozvoikko.config
include $(DEPTH)/config/autoconf.mk
MODULE = mozvoikko
XPI_NAME = mozvoikko
INSTALL_EXTENSION_ID = mozvoikko@mozilla.fi
XPI_PKGNAME = mozvoikko-$(MOZVOIKKO_VERSION)-$(OS_ARCH)_$(TARGET_XPCOM_ABI)
DIST_FILES = README COPYING
PKG_FILES = $(DIST_FILES) ChangeLog Makefile.in README.BUILD mozvoikko.config
PKG_FILES += Makefile.xulrunner README.xulrunner
PKG_FILES += $(shell cd $(srcdir) && find src -name '*.cpp' -o -name '*.h' -o -name '*.hxx')
PKG_FILES += src/Makefile.in src/Makefile.xulrunner src/install.rdf.in
PKG_FILES += src/chrome.manifest.in src/nsIMozvoikkoHelper.idl
PKG_FILES += src/nsMozvoikkoHelper.js
PKG_FILES += src/gnu-ld-scripts/*
PKG_FILES += $(shell cd $(srcdir) && find src/voikko-data -name README)
PKG_FILES += $(shell cd $(srcdir) && find src/voikko-libs -name README)
DIRS = src
include $(topsrcdir)/config/rules.mk
dist-gzip:
( cd $(topsrcdir)/extensions && tar c $$(printf " mozvoikko/%s" $(PKG_FILES))) |\
gzip -9 >mozvoikko-$(MOZVOIKKO_VERSION).tar.gz
dist-bzip2:
( cd $(topsrcdir)/extensions && tar c $$(printf " mozvoikko/%s" $(PKG_FILES))) |\
bzip2 -9 >mozvoikko-$(MOZVOIKKO_VERSION).tar.bz2
source_pkg:
$(MAKE) -C src check-all-extra-files
( cd $(topsrcdir)/.. && tar c --exclude '*~*' mozilla/extensions/mozvoikko ) |\
bzip2 -9 >mozvoikko-$(MOZVOIKKO_VERSION).src.tar.bz2
|