File: Makefile.am

package info (click to toggle)
indent 2.2.4-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 872 kB
  • ctags: 718
  • sloc: ansic: 5,941; sh: 392; makefile: 96
file content (57 lines) | stat: -rw-r--r-- 2,193 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
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = no-texinfo.tex

bin_PROGRAMS = indent
indent_SOURCES = args.c comments.c indent.c lexi.c parse.c backup.c globs.c io.c
noinst_HEADERS = backup.h indent.h sys.h lexi.h args.h comments.h globs.h io.h parse.h

info_TEXINFOS = indent.texinfo
man_MANS = indent.1

BUILT_SOURCES = indent.1 README README.vc++ ChangeLog gperf.c gperf-cc.c indent.html indent_foot.html indent_toc.html config.h.vc++
EXTRA_DIST = $(BUILT_SOURCES) indent.gperf indent-cc.gperf ChangeLog-1990 ChangeLog-1998 indent.dsp

lexi.o: $(srcdir)/lexi.c $(srcdir)/sys.h config.h $(srcdir)/indent.h @MAINTAINER_MODE_TRUE@ gperf.c gperf-cc.c
	$(COMPILE) -c $(srcdir)/lexi.c

gperf.c: @MAINTAINER_MODE_TRUE@ indent.gperf
	gperf -D -c -l -p -t -T -g -j1 -o -K rwd -N is_reserved indent.gperf > gperf.c

gperf-cc.c: @MAINTAINER_MODE_TRUE@ indent-cc.gperf
	gperf -D -c -l -p -t -T -g -j1 -o -K rwd -N is_reserved_cc -H hash_cc indent-cc.gperf > gperf-cc.c

DISTCLEANFILES=config.cache config.log config.h

# --------------- Maintainer's Section

MAINTAINERCLEANFILES=aclocal.m4 Makefile.in config.h.in stamp-h.in configure \
	ChangeLog texinfo2man indent.1 gperf.c gperf-cc.c \
	indent-1.spec index.html cvslog-*.html indent.html indent_*.html

## Use -g when in maintainer mode
if MAINTAINER_MODE
CFLAGS=-g
else
CFLAGS=@CFLAGS@
endif

## Bug in automake: Can't use `if MAINTAINER_MODE'
@MAINTAINER_MODE_TRUE@include $(srcdir)/maintMakefile

if MAINTAINER_MODE
README.vc++: Makefile.am README.vc++.in config.status
	sed -e 's%!VERSION!%'`grep 's%@VERSION' config.status | cut -d% -f3`'%g' README.vc++.in > README.vc++

config.h.vc++: Makefile.am config.h.vc++.in config.status
	sed -e 's%!VERSION!%'`grep 's%@VERSION' config.status | cut -d% -f3`'%g' config.h.vc++.in > config.h.vc++
endif

## Can't put this in the maintMakefile for some reason.
maintainer-clean-local:
	echo "all:" > Makefile
	echo -e "\tautoheader" >> Makefile
	echo -e "\tautomake --foreign" >> Makefile
	echo -e "\taclocal" >> Makefile
	echo -e "\tautoconf" >> Makefile
	echo -e "\tautoheader" >> Makefile
	echo -e "\tconfigure --enable-maintainer-mode --prefix=/home/carlo" >> Makefile