Makefile cleanups

This commit is contained in:
p.kosyh 2009-09-23 06:28:30 +00:00
parent 38e5d567a3
commit 44ec3f8503
10 changed files with 9 additions and 42 deletions

View file

@ -16,8 +16,8 @@ LUA_LFLAGS=$(shell pkg-config --libs lua5.1)
# for arch linux, fedora (may be others) use this
#
LUA_CFLAGS=$(shell pkg-config --cflags lua)
LUA_LFLAGS=$(shell pkg-config --libs lua)
# LUA_CFLAGS=$(shell pkg-config --cflags lua)
# LUA_LFLAGS=$(shell pkg-config --libs lua)
#
SDL_CFLAGS=$(shell sdl-config --cflags)

View file

@ -11,9 +11,6 @@ install:
$(INSTALLD) $(DESTDIR)$(PREFIX)/share/applications
$(INSTALL) instead.desktop $(DESTDIR)$(PREFIX)/share/applications/instead.desktop
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) $(DESTDIR)$(PREFIX)/share/applications/instead.desktop
else
uninstall:
endif

View file

@ -7,10 +7,7 @@ install:
$(INSTALLD) $(MANPATH)
$(INSTALL) *.6 $(MANPATH)
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) -rf $(DOCPATH)
$(RM) $(MANPATH)/instead.*
else
uninstall:
endif

View file

@ -1,20 +1,14 @@
include ../Rules.make
all:
install:
ifeq ($(SYSTEMSETUP), yes)
$(INSTALLD) $(GAMESPATH)
for f in *; do \
if [ ! -d $$f ]; then continue; fi;\
$(INSTALLD) $(GAMESPATH)/$$f; \
tar --exclude=".svn" -c -C $$f . | tar -x -C $(GAMESPATH)/$$f;\
done
endif
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) -rf $(GAMESPATH)
else
uninstall:
endif
clean:

View file

@ -5,9 +5,6 @@ install:
$(INSTALLD) $(ICONPATH)
$(INSTALL) sdl_instead.png $(ICONPATH)
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) $(ICONPATH)/sdl_instead.png
else
uninstall:
endif

View file

@ -7,9 +7,6 @@ install:
$(INSTALL) $$f $(LANGPATH)/$$f;\
done
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) -rf $(LANGPATH)
else
uninstall:
endif

View file

@ -9,9 +9,6 @@ install:
$(INSTALLD) $(BIN)
$(INSTALLB) instead $(BIN)/instead
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) $(BIN)/instead
else
uninstall:
endif

View file

@ -20,12 +20,8 @@ install:
$(INSTALLD) $(BIN)
$(INSTALLB) sdl-instead$(EXE) $(BIN)/sdl-instead$(EXE)
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) $(BIN)/sdl-instead$(EXE)
else
uninstall:
endif
clean:
$(RM) -f *.o sdl-instead$(EXE)

View file

@ -7,10 +7,7 @@ install:
$(INSTALL) stead.lua $(STEADPATH)/stead.lua
$(INSTALL) gui.lua $(STEADPATH)/gui.lua
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) $(STEADPATH)/stead.lua
$(RM) $(STEADPATH)/gui.lua
else
uninstall:
endif

View file

@ -2,18 +2,13 @@ include ../Rules.make
clean:
all:
install:
ifeq ($(SYSTEMSETUP), yes)
$(INSTALLD) $(THEMESPATH)
for f in *; do \
if [ ! -d $$f ]; then continue; fi;\
$(INSTALLD) $(THEMESPATH)/$$f;\
tar --exclude=".svn" -c -C $$f . | tar -x -C $(THEMESPATH)/$$f;\
done
endif
ifeq ($(SYSTEMSETUP), yes)
uninstall:
$(RM) -rf $(THEMESPATH)
else
uninstall:
endif