Source

love-canvas_getPixel / platform / unix / gen-makefile

Full commit
#!/bin/bash
echo Generating src/Makefile.am ...
cd src
inc_current=.
inc_modules="$inc_current/modules"
inc_libraries="$inc_current/libraries"
echo "AM_CPPFLAGS = -I$inc_current -I$inc_modules -I$inc_libraries -I/usr/include/AL -I/usr/include/freetype2  \$(INCLUDE_LUA) -I/usr/include/SDL \$(FILE_OFFSET) -I/usr/include/gme
AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS =

if LOVE_BUILD_EXE
# LÖVE executable
bin_PROGRAMS = love
#love_LDFLAGS =
love_LDADD = liblove.la
love_SOURCES = love.cpp
endif

# libLÖVE
lib_LTLIBRARIES = liblove.la
liblove_la_LDFLAGS = -module -export-dynamic \$(LDFLAGS)
liblove_la_SOURCES = \\" > Makefile.am.tmp
find . \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.lch" \) \) -exec echo '{}' \\ \; >> Makefile.am.tmp
cat Makefile.am.tmp | grep -v -f"../platform/unix/exclude" | head -c -3 > Makefile.am
#head -c -3 Makefile.am.tmp > Makefile.am
rm Makefile.am.tmp
cd ..
echo src/Makefile.am is updated! \^.^