summaryrefslogtreecommitdiffstats
path: root/kalyptus/Makefile.in
blob: 86061207a7146ab1b45d925293202d7f53263775 (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
prefix = @prefix@
exec_prefix = @exec_prefix@
perl = @perl@
install = @INSTALL@
bin = kalyptus
pm = kdocUtil.pm kdocAstUtil.pm kdocParseDoc.pm kdocLib.pm \
	Ast.pm kalyptusDataDict.pm kalyptusCxxToC.pm \
	kalyptusCxxToObjc.pm kalyptusCxxToJava.pm \
	kalyptusCxxToSmoke.pm kalyptusCxxToCSharp.pm \
	Iter.pm
pmextra =
bindir = ${exec_prefix}/bin
pmdir = ${prefix}/share/kalyptus
srcdocdir= .
VERSION=@Version@

all: kalyptus.local

kalyptus.local: @srcdir@/kalyptus
	cp @srcdir@/kalyptus kalyptus.local
	perl -npi -e 's%^#\!.*$$%#!'${perl}' -I'${pmdir}'%g;' kalyptus.local
	perl -npi -e 's#\$$Version\\\$$#'"${VERSION}"'#g;' kalyptus.local

install: all
	${install} -d $(DESTDIR)${bindir}
	${install} -m 755 kalyptus.local $(DESTDIR)${bindir}/kalyptus
	${install} -d $(DESTDIR)${pmdir}
	for file in ${pm} ${pmextra}; do \
		${install} -m 644 @srcdir@/$$file $(DESTDIR)${pmdir}; \
	done

uninstall:
	(cd $(DESTDIR)${bindir} && rm -f ${bin})
	(cd $(DESTDIR)${pmdir} && rm -f ${pm})
	-rmdir $(DESTDIR)${bindir}
	-rmdir $(DESTDIR)${pmdir}

clean:
	rm -f kalyptus.local

distclean: clean
	rm -f Makefile config.status config.log config.cache perlbin

srcdoc:
	pod2html --flush --title KALYPTUS $(bin) $(pm) \
		 --outfile $(srcdocdir)/kalyptus-doc.html
tags:
	perltags kalyptus *.pm

check:
	@for dir in $(bin) $(pm); do \
		echo "** Checking: $$dir"; \
		perl -wc $$dir; done