gen-makefile 736 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. echo Generating src/Makefile.am ...
  3. cd src
  4. inc_current=.
  5. inc_modules="$inc_current/modules"
  6. echo "AM_CPPFLAGS = -I$inc_current -I$inc_modules -I/usr/include/AL -I/usr/include/freetype2 \$(INCLUDE_LUA) -I/usr/include/SDL \$(FILE_OFFSET)
  7. AUTOMAKE_OPTIONS = subdir-objects
  8. DEFAULT_INCLUDES =
  9. SUBDIRS =
  10. # LÖVE executable
  11. bin_PROGRAMS = love
  12. #love_LDFLAGS =
  13. #love_LDADD =
  14. love_SOURCES = \\" > Makefile.am.tmp
  15. find . \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.lch" \) \) -exec echo '{}' \\ \; >> Makefile.am.tmp
  16. cat Makefile.am.tmp | grep -v -f"../platform/unix/exclude" | head -c -3 > Makefile.am
  17. #head -c -3 Makefile.am.tmp > Makefile.am
  18. rm Makefile.am.tmp
  19. cd ..
  20. echo src/Makefile.am is updated! \^.^