summaryrefslogtreecommitdiff
path: root/gnu/dist/gettext/src/Makefile.am
blob: 8cc76815ae7469d91fd8ba302b4888bd6315b87a (plain)
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
## Makefile for program src directory in GNU NLS utilities package.
## Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
##
## 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = 1.2 gnits

bin_PROGRAMS = gettext msgcmp msgfmt msgmerge msgunfmt xgettext msgcomm

noinst_HEADERS = domain.h message.h po-gram.h po-hash.h po-lex.h po.h \
str-list.h xget-lex.h po-gram.gen.h po-hash.gen.h dir-list.h

EXTRA_DIST = po-gram.y po-hash.y

datadir = $(prefix)/@DATADIRNAME@
localedir = $(datadir)/locale

l = @l@

INCLUDES = -I$(srcdir) -I.. -I$(top_srcdir)/lib -I../intl -I$(top_srcdir)/intl
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
LDADD = ../lib/libnlsut.a ../intl/libintl.$la

SED = sed
YACC = @YACC@
YFLAGS = -d

# Source dependecies.
gettext_SOURCES = gettextp.c
msgcmp_SOURCES = message.c msgcmp.c open-po.c po-gram.gen.c po-hash.gen.c \
po-lex.c po.c str-list.c dir-list.c
msgfmt_SOURCES = msgfmt.c open-po.c po-gram.gen.c po-hash.gen.c po-lex.c po.c \
str-list.c message.c dir-list.c
msgmerge_SOURCES = message.c msgmerge.c open-po.c po-gram.gen.c po-hash.gen.c \
po-lex.c po.c str-list.c dir-list.c
msgunfmt_SOURCES = message.c msgunfmt.c str-list.c
xgettext_SOURCES = message.c open-po.c po-gram.gen.c po-hash.gen.c po-lex.c \
po.c str-list.c xget-lex.c xgettext.c dir-list.c
msgcomm_SOURCES = msgcomm.c message.c po-gram.gen.c po-hash.gen.c po-lex.c \
open-po.c po.c str-list.c dir-list.c

MAINTAINERCLEANFILES = po-gram.gen.c po-gram.gen.h po-hash.gen.c po-hash.gen.h

# Some rules for yacc handling.
#po-gram.gen.c po-gram.gen.h: po-gram.y
#	$(YACC) $(YFLAGS) $(srcdir)/po-gram.y
#	if test -s y.tab.c && test -s y.tab.h; then \
#	  rm -f $(srcdir)/po-gram.gen.c $(srcdir)/po-gram.gen.h; \
#	  $(SED) 's/[yY][yY]/po_gram_/g' < y.tab.c > $(srcdir)/po-gram.gen.c; \
#	  $(SED) 's/[yY][yY]/po_gram_/g' < y.tab.h > $(srcdir)/po-gram.gen.h; \
#	fi
#	rm -f y.tab.c y.tab.h

#po-hash.gen.c po-hash.gen.h: po-hash.y
#	$(YACC) $(YFLAGS) $(srcdir)/po-hash.y
#	if test -s y.tab.c && test -s y.tab.h; then \
#	  rm -f $(srcdir)/po-hash.gen.c $(srcdir)/po-hash.gen.h; \
#	  $(SED) 's/[yY][yY]/po_hash_/g' < y.tab.c > $(srcdir)/po-hash.gen.c; \
#	  $(SED) 's/[yY][yY]/po_hash_/g' < y.tab.h > $(srcdir)/po-hash.gen.h; \
#	fi
#	rm -f y.tab.c y.tab.h