]> granicus.if.org Git - fribidi/blob - Makefile.am
Here and there small improvements.
[fribidi] / Makefile.am
1 ##                                               -*- Automake -*-
2 ## Process this file with automake to produce Makefile.in
3 ##############################################################################
4 ## $Id: Makefile.am,v 1.8 2004-08-27 21:55:59 behdad Exp $
5 ## $Author: behdad $
6 ## $Date: 2004-08-27 21:55:59 $
7 ## $Revision: 1.8 $
8 ## $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/Makefile.am,v $
9 ##############################################################################
10
11 ## The order of subdirs is important, don't change without a reason.
12 SUBDIRS = gen.tab charset lib bin doc test
13
14 EXTRA_DIST = bootstrap ChangeLog.old
15
16 pkgconfigdir = $(libdir)/pkgconfig
17 pkgconfig_DATA = @PACKAGE@.pc
18
19 BUILT_SOURCES = lib/fribidi-unicode-version.h
20 lib/fribidi-unicode-version.h:
21         (cd lib && $(MAKE) $(AM_MAKEFLAGS) fribidi-unicode-version.h)
22
23 MAINTAINERCLEANFILES = \
24                 $(srcdir)/INSTALL \
25                 $(srcdir)/aclocal.m4 \
26                 $(srcdir)/autoscan.log \
27                 $(srcdir)/compile \
28                 $(srcdir)/config.guess \
29                 $(srcdir)/config.h.in \
30                 $(srcdir)/config.sub \
31                 $(srcdir)/configure.scan \
32                 $(srcdir)/depcomp \
33                 $(srcdir)/install-sh \
34                 $(srcdir)/ltmain.sh \
35                 $(srcdir)/missing \
36                 `find "$(srcdir)" -type f -name Makefile.in -print` \
37                 `find "$(srcdir)" -type f -name "*~" -print` \
38                 `$(srcdir)/bootstrap --write-configure`
39 # The last line above is a horrible hack.
40 # GNU Coding Standards recommends that `make maintainer-clean' should not 
41 # remove the configure script.
42 # We instead make configure call bootstrap.
43
44 # Indent all C source and header files, using indent(1):
45
46 indent: $(srcdir)/.indent.pro
47         cd "$(srcdir)" && \
48         find . -type f -mindepth 2 -name "*.[ch]" -print | \
49           xargs ./missing --run indent
50
51 .PHONY: indent
52
53 # Creating ChangeLog from CVS log, using cvs2cl(1):
54
55 MAINTAINERCLEANFILES += ChangeLog ChangeLog.bak
56
57 EXTRA_DIST += ChangeLog
58
59 ChangeLog: $(srcdir)/ChangeLog
60
61 $(srcdir)/ChangeLog:
62         @if test -d "$(srcdir)/CVS"; then \
63           (cd "$(srcdir)" && \
64           ./missing --run cvs2cl --stdout --utc --FSF -U AUTHORS) > $@.tmp \
65           && echo "For older changes see ChangeLog.old" >> $@.tmp && mv $@.tmp $@ \
66           || ($(RM) $@.tmp; \
67               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
68               (test -f $@ || echo cvs2cl is required to generate this file >> $@)); \
69         else \
70           test -f $@ || \
71           (echo A CVS checkout and cvs2cl is required to generate ChangeLog >&2 && \
72           echo A CVS checkout and cvs2cl is required to generate this file >> $@); \
73         fi
74
75 .PHONY: ChangeLog $(srcdir)/ChangeLog