1## Process this file with automake to produce Makefile.in 2 3SUBDIRS = tests doc 4 5# Scripts which are bundled with all intltoolized packages: 6distributed_scripts = \ 7 intltool-extract \ 8 intltool-merge \ 9 intltool-update 10 11# The intltool scripts 12bin_SCRIPTS = \ 13 $(distributed_scripts) \ 14 intltoolize \ 15 intltool-prepare 16 17# These are required by intltoolize 18dist_pkgdata_DATA = Makefile.in.in 19 20# This macro file should be visible to Automake's aclocal. 21dist_aclocal_DATA = intltool.m4 22 23CLEANFILES = \ 24 $(bin_SCRIPTS) \ 25 $(EXTRA_SCRIPTS) 26 27EXTRA_DIST = \ 28 $(distributed_scripts:=.in) \ 29 intltool-prepare.in \ 30 NEWS \ 31 ChangeLog 32 33edit = 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 42ChangeLog: 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 --gnu-changelog -l 50 > $@; \ 51 fi 52