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
|
# Copyright (C) 2008 Harri Pitkänen <hatapitk@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.
include mozvoikko.config
.PHONY: clean dist-gzip all xpi extension-files install-unpacked
all: xpi
xpi:
$(MAKE) -e -C src -f Makefile.xulrunner xpi
extension-files:
$(MAKE) -e -C src -f Makefile.xulrunner extension-files
install-unpacked:
$(MAKE) -e -C src -f Makefile.xulrunner install-unpacked
# Rules for creating the source distribution
SRCDIST=README README.BUILD README.xulrunner ChangeLog COPYING \
Makefile.in Makefile.xulrunner mozvoikko.config \
src/install.rdf.in src/Makefile.xulrunner src/mozVoikkoSpell.cpp \
src/chrome.manifest.xulrunner \
src/mozVoikkoUtils.cpp src/voikko-dist.h \
src/mozVoikko.cpp src/mozVoikkoSpellFactory.cpp \
src/mozVoikkoUtils.hxx src/Makefile.in src/mozVoikko.hxx \
src/mozVoikkoSpell.hxx
dist-gzip: mozvoikko-$(MOZVOIKKO_VERSION).tar.gz
mozvoikko-$(MOZVOIKKO_VERSION).tar.gz: $(patsubst %,mozvoikko-$(MOZVOIKKO_VERSION)/%, \
$(sort $(SRCDIST)))
tar c --group 0 --owner 0 mozvoikko-$(MOZVOIKKO_VERSION) | gzip -9 > $@
$(patsubst %,mozvoikko-$(MOZVOIKKO_VERSION)/%, $(sort $(SRCDIST))): \
mozvoikko-$(MOZVOIKKO_VERSION)/%: %
install --mode=644 -D $^ $@
# Clean rules
clean:
rm -rf mozvoikko-$(MOZVOIKKO_VERSION)
rm -f mozvoikko-$(MOZVOIKKO_VERSION).tar.gz
$(MAKE) -C src -f Makefile.xulrunner clean
|