1ACLOCAL_AMFLAGS = -I build-scripts 2 3SUBDIRS = . libtwolame frontend simplefrontend doc tests 4 5pkgconfigdir = $(libdir)/pkgconfig 6pkgconfig_DATA = twolame.pc 7 8INDENT = indent -npro -kr -nsob -fca -blf -ip1 -hnl -l100 -lc100 -nut -ts4 -v 9indent: 10 find $(top_srcdir) -type f -name "*.[ch]" -print -exec $(INDENT) {} ';' 11 12 13# Copy README.md to README and NEWS.md to NEWS when building distribution 14all-local: README NEWS ChangeLog 15 16README: 17 [ -f README.md ] && fgrep -v "Build Status]" $(top_srcdir)/README.md > $@ || true 18 19NEWS: 20 [ -f NEWS.md ] && cat $(top_srcdir)/NEWS.md > $@ || true 21 22ChangeLog: 23 [ -d .git ] && git log > ChangeLog || true 24 25pkgdocdir = @docdir@ 26pkgdoc_DATA = \ 27 AUTHORS \ 28 COPYING \ 29 README \ 30 NEWS 31 32EXTRA_DIST = \ 33 $(pkgdoc_DATA) \ 34 twolame.pc.in \ 35 twolame.spec \ 36 win32/configwin.h \ 37 win32/libtwolame_dll.sln \ 38 win32/libtwolame_dll.vcproj \ 39 win32/libtwolame_static.sln \ 40 win32/libtwolame_static.vcproj \ 41 win32/winutil.h 42 43test: check 44