File: Makefile

package info (click to toggle)
ocaml-gettext 0.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,112 kB
  • ctags: 561
  • sloc: ml: 5,387; xml: 1,892; makefile: 525; sh: 457; ansic: 155
file content (89 lines) | stat: -rw-r--r-- 3,927 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
##########################################################################
#  ocaml-gettext: a library to translate messages                        #
#                                                                        #
#  Copyright (C) 2003-2008 Sylvain Le Gall <sylvain@le-gall.net>         #
#                                                                        #
#  This library is free software; you can redistribute it and/or         #
#  modify it under the terms of the GNU Lesser General Public            #
#  License as published by the Free Software Foundation; either          #
#  version 2.1 of the License, or (at your option) any later version;    #
#  with the OCaml static compilation exception.                          #
#                                                                        #
#  This library 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     #
#  Lesser General Public License for more details.                       #
#                                                                        #
#  You should have received a copy of the GNU Lesser General Public      #
#  License along with this library; if not, write to the Free Software   #
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307   #
#  USA                                                                   #
##########################################################################

default: test 

all:
	cd libgettext-ocaml          && $(MAKE) all
	cd libgettext-stub-ocaml     && $(MAKE) all
	cd libgettext-camomile-ocaml && $(MAKE) all
	cd ocaml-gettext             && $(MAKE) all
	cd po                        && $(MAKE) all
	cd doc                       && $(MAKE) all
	cd test                      && $(MAKE) all

install:
	cd libgettext-ocaml          && $(MAKE) install
	cd libgettext-stub-ocaml     && $(MAKE) install
	cd libgettext-camomile-ocaml && $(MAKE) install
	cd ocaml-gettext             && $(MAKE) install
	cd po                        && $(MAKE) install
	cd doc                       && $(MAKE) install

uninstall:
	cd doc                       && $(MAKE) uninstall
	cd po                        && $(MAKE) uninstall
	cd ocaml-gettext             && $(MAKE) uninstall
	cd libgettext-camomile-ocaml && $(MAKE) uninstall
	cd libgettext-stub-ocaml     && $(MAKE) uninstall
	cd libgettext-ocaml          && $(MAKE) uninstall
	
clean:
	-cd test                      && $(MAKE) clean
	-cd doc                       && $(MAKE) clean
	-cd po                        && $(MAKE) clean
	-cd examples                  && $(MAKE) clean
	-cd ocaml-gettext             && $(MAKE) clean
	-cd libgettext-camomile-ocaml && $(MAKE) clean
	-cd libgettext-stub-ocaml     && $(MAKE) clean
	-cd libgettext-ocaml          && $(MAKE) clean
	-$(RM) -r $(TMPBUILDDIR)

distclean: clean
	-cd test                      && $(MAKE) distclean
	-cd doc                       && $(MAKE) distclean
	-cd po                        && $(MAKE) distclean
	-cd examples                  && $(MAKE) distclean
	-cd ocaml-gettext             && $(MAKE) distclean
	-cd libgettext-camomile-ocaml && $(MAKE) distclean
	-cd libgettext-stub-ocaml     && $(MAKE) distclean
	-cd libgettext-ocaml          && $(MAKE) distclean
	-$(RM) config.* ConfMakefile
	-$(RM) -r autom4te.cache config.log config.cache config.status

headache: distclean
	headache -h .header -c .headache.config `find $(CURDIR)/ -type d -name .svn -prune -false -o -type f`

DIST_DIR=$(PACKAGE_TARNAME)-$(VERSION)
dist:
	-$(RM) -r $(DIST_DIR)
	svn export . $(DIST_DIR)
	cd $(DIST_DIR) && autoconf && $(RM) -r autom4te.cache
	tar czf $(DIST_DIR).tar.gz $(DIST_DIR)
	$(RM) -r $(DIST_DIR)

test: all
	cd test && ./test

-include ConfMakefile

.PHONY: all install uninstall clean distclean dist test