Imported Upstream version 0.50.2
[platform/upstream/intltool.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = tests doc
4
5 # Scripts which are bundled with all intltoolized packages:
6 distributed_scripts =                           \
7         intltool-extract                        \
8         intltool-merge                          \
9         intltool-update
10
11 # The intltool scripts
12 bin_SCRIPTS =                                   \
13         $(distributed_scripts)                  \
14         intltoolize                             \
15         intltool-prepare
16
17 # These are required by intltoolize
18 dist_pkgdata_DATA =     Makefile.in.in
19
20 # This macro file should be visible to Automake's aclocal.
21 dist_aclocal_DATA = intltool.m4
22
23 CLEANFILES =                                    \
24         $(bin_SCRIPTS)                          \
25         $(EXTRA_SCRIPTS)
26
27 EXTRA_DIST =                                    \
28         $(distributed_scripts:=.in)             \
29         intltool-prepare.in                     \
30         NEWS                                    \
31         ChangeLog
32
33 edit = sed -e 's|[@]PACKAGE@|$(PACKAGE)|g' \
34            -e 's|[@]VERSION@|$(VERSION)|g' \
35            -e "s|[@]INTLTOOL_PERL@|$(PERL)|g" \
36            -e "s|[@]INTLTOOL_LIBDIR@|$(libdir)|g"
37
38 %: %.in Makefile
39         $(edit) < $< > $@
40         chmod +x $@
41
42 ChangeLog:
43         @if test -z "$(BZR)"; then \
44             echo "bzr is required for generating the ChangeLog."; \
45             exit 1; \
46         elif test ! -d "$(srcdir)/.bzr"; then \
47             echo "ChangeLog can only be generated in a check-out."; \
48             exit 1; \
49         else \
50             $(BZR) log > $@; \
51         fi