File: Makefile.am

package info (click to toggle)
rpncalc 1.35
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,376 kB
  • ctags: 184
  • sloc: sh: 3,288; ansic: 878; lex: 347; sed: 312; yacc: 118; makefile: 91
file content (59 lines) | stat: -rw-r--r-- 1,773 bytes parent folder | download | duplicates (2)
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
## Process this file with automake to produce Makefile.in
# -*- Makefile -*-

SUBDIRS = po

AM_CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -Wmissing-prototypes\
  -Wmissing-declarations -Wbad-function-cast -Wnested-externs\
  -Wcast-qual -Wcast-align -Wshadow -Wwrite-strings -Wpointer-arith
AM_YFLAGS = -d
AM_LFLAGS = -8 # -d
ACLOCAL_AMFLAGS = -I m4

datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

bin_PROGRAMS = rpncalc
rpncalc_SOURCES = rpncalc.c cmds.c stack.c utils.c gram.y scan.l\
		  rpncalc.h cmds.h stack.h utils.h gram.h acconfig.h
rpncalc_LDADD = @LIBINTL@

CLEANFILES=gram.c scan.c $(man_MANS)

man_MANS    = rpncalc.1
man_DE_MANS = rpncalc.de.1
man_ES_MANS = rpncalc.es.1

POMAKEFILEDEPS=
MAN_LINGUAS = de en es
MANTEMPL = rpncalc.de.1.sed rpncalc.en.1.sed rpncalc.es.1.sed

$(man_MANS) $(man_MANS_DE) $(man_MANS_ES): proto.ed $(MANTEMPL)
	unset LANG; \
	for lang in $(MAN_LINGUAS); do \
	  manpage=rpncalc.$$lang.1; \
	  LANG=$$lang_$$(echo $$lang|tr a-z A-Z) sed -e "s/\\\$$Date.*\\\$$/`date +'%B %-d, %Y'`"/g $$manpage.sed > $$manpage; \
	  ed -s - $$manpage < proto.ed; \
	  chmod 644 $$manpage; \
	done
	ln -s rpncalc.en.1 rpncalc.1

install-data-local:
	for lang in `echo $(MAN_LINGUAS)|tr ' ' '\n'|grep -v en`; do \
	  mandir=$(DESTDIR)/usr/share/man/$$lang/man1; \
	  $(mkinstalldirs) $$mandir; \
	  $(INSTALL_DATA) rpncalc.$$lang.1 $$mandir/rpncalc.1; \
	done

po:
	xgettext -F -o po/rpncalc.pot -k_ *.[cly]

rpncalc.c: cmds.h stack.h utils.h config.h Makefile
cmds.c: cmds.h stack.h utils.h config.h Makefile
stack.c: cmds.h stack.h utils.h config.h Makefile
utils.c: utils.h config.h Makefile
scan.l: cmds.h stack.h utils.h gram.h config.h Makefile
gram.y: cmds.h stack.h utils.h Makefile

.PHONY:	po