config.make fix

This commit is contained in:
p.kosyh 2009-11-08 14:33:23 +00:00
parent cfd5efa0d5
commit 4a0c8adab1
10 changed files with 23 additions and 9 deletions

View file

@ -2,16 +2,21 @@ include Rules.make
SUBDIRS = src/sdl-instead stead games themes icon desktop doc languages
all:
all: config.make
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $(@) || exit 1; \
done;
config.make:
echo "# you can define own flags here" > config.make
include config.make
clean:
@for dir in $(SUBDIRS); do \
$(MAKE) clean -C $$dir $(@) || exit 1; \
done;
echo "# you can define own flags here" > config.make
$(RM) config.make
install: all
ifeq ($(SYSTEMSETUP), yes)

View file

@ -1,5 +0,0 @@
# autamatically generated by configure.sh
LUA_CFLAGS=$(shell pkg-config --cflags lua5.1)
LUA_LFLAGS=$(shell pkg-config --libs lua5.1)
SDL_CFLAGS=$(shell sdl-config --cflags)
SDL_LFLAGS=$(shell sdl-config --libs) -lSDL_ttf -lSDL_mixer -lSDL_image

View file

@ -70,11 +70,11 @@ echo -n $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL
if ! $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -o /tmp/sdl-test; then
echo ") failed".
echo "Please, check those dev packages installed: SDL_ttf SDL_mixer SDL_image."
rm /tmp/sdl-test.c /tmp/sdl-test
rm -f /tmp/sdl-test.c /tmp/sdl-test
exit 1
fi
echo ") ok"
rm /tmp/sdl-test.c /tmp/sdl-test
rm -f /tmp/sdl-test.c /tmp/sdl-test
if ! make clean >/dev/null 2>&1; then
echo " * Warning!!! Can not do make clean..."
fi

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
clean:
rm -rf instead.desktop

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
pdf:
pdflatex manual.tex
pdflatex manual.tex

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
all:
install:
$(INSTALLD) $(GAMESPATH)

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
clean:
all:
install:

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
clean:
all:
install:

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
clean:
all: stead.lua

View file

@ -1,4 +1,6 @@
include ../Rules.make
include ../config.make
clean:
all:
install: