40d9abfd019fc0d76cd4f7b36275df6189b0ec6d
[synfig.git] / ETL / trunk / Makefile.am
1 # $Id$
2
3 MAINTAINERCLEANFILES = \
4         COPYING \
5         INSTALL \
6         config/config.guess \
7         config/config.sub \
8         config/ltmain.sh \
9         config/install-sh \
10         config/mkinstalldirs \
11         config/aclocal.m4 \
12         config/missing \
13         config/texinfo.tex \
14         config/depcomp \
15         aclocal.m4 \
16         config.h.in \
17         configure \
18         stamp-h.in \
19         Makefile.in \
20         config.log \
21         config.status \
22         .doc_stamp \
23         .DS_Store \
24         doxygen.cfg
25
26
27 SUBDIRS = \
28         ETL \
29         test
30
31
32 # Install the pkg-config file:
33 pkgconfigdir = $(libdir)/pkgconfig
34 pkgconfig_DATA = ETL.pc
35
36 #Install the -config/m4 alternative to pkg-config:
37 bin_SCRIPTS = ETL-config
38
39 aclocaldir = $(prefix)/share/aclocal
40 ACLOCAL_AMFLAGS = -I m4
41
42 EXTRA_DIST = \
43         COPYING \
44         m4/subs.m4 \
45         config/depcomp \
46         m4/cxx_macros.m4 \
47         ETL.pbproj/project.pbxproj \
48         ETL.pbproj/frameworkfix.cpp \
49         ETL-config.in \
50         m4/ETL.m4 \
51         doxygen.cfg.in \
52         doxygen.cfg \
53         ETL.pc.in
54
55
56 SVN=svn
57 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
58
59 GREP=grep
60
61 PRINTF=printf
62
63 SH=sh
64
65 DOXYGEN=doxygen
66
67 stats:
68         -@echo
69         -@echo  -- Stats
70         -@echo
71         -@$(PRINTF) "Total lines: "
72         -@wc -l $(shell find $(top_srcdir)/ETL -name '*.[ch]*') | $(GREP) total
73         -@$(PRINTF) "Total size: "
74         -@du -hcs $(shell find $(top_srcdir)/ETL -name '*.[ch]*') | $(GREP) total
75         -@echo 
76
77 tagstable:
78         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
79         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"
80
81 tagrelease:
82         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
83
84 ChangeLog:
85         -svn update
86         svn2cl --include-rev || touch ChangeLog
87
88 listfixmes:
89         -@echo
90         -@echo  -- List of pending FIXMEs
91         -@echo
92         -@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*')
93         -@echo
94
95 listhacks:
96         -@echo
97         -@echo  -- List of pending HACKs
98         -@echo
99         -@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*')
100         -@echo
101
102 run: check
103
104 .doc_stamp: doxygen.cfg
105         $(DOXYGEN) doxygen.cfg
106         touch .doc_stamp
107
108 html: .doc_stamp
109
110 rtf: .doc_stamp
111
112 docs: html
113
114 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf