home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Inne
/
Gry
/
Atomic_Tanks
/
Atomic-Tanks-5.1.exe
/
Makefile
< prev
next >
Wrap
Makefile
|
2011-06-30
|
2KB
|
81 lines
VERSION=5.1
PREFIX = /usr/
BINPREFIX = $(PREFIX)
BINDIR = ${BINPREFIX}bin/
INSTALLDIR = ${PREFIX}share/games/atanks
export VERSION
export PREFIX
export INSTALLDIR
FILENAME=atanks-${VERSION}
INSTALL=$(PREFIX)bin/install -c
DISTCOMMON=atanks/*.dat atanks/COPYING atanks/README atanks/TODO atanks/Changelog atanks/BUGS atanks/*.txt
INCOMMON=COPYING README TODO Changelog *.txt unicode.dat
all:
FLAGS=-DLINUX $(MAKE) -C src
install:
mkdir -p ${BINDIR}
$(INSTALL) -g 0 -m 755 -o 0 atanks ${BINDIR}
mkdir -p ${INSTALLDIR}
mkdir -p ${INSTALLDIR}/button
mkdir -p ${INSTALLDIR}/misc
mkdir -p ${INSTALLDIR}/missile
mkdir -p ${INSTALLDIR}/sound
mkdir -p ${INSTALLDIR}/stock
mkdir -p ${INSTALLDIR}/tank
mkdir -p ${INSTALLDIR}/tankgun
mkdir -p ${INSTALLDIR}/title
mkdir -p ${INSTALLDIR}/text
$(INSTALL) -g 0 -m 644 -o 0 $(INCOMMON) ${INSTALLDIR}
$(INSTALL) -g 0 -m 644 -o 0 button/* ${INSTALLDIR}/button
$(INSTALL) -g 0 -m 644 -o 0 misc/* ${INSTALLDIR}/misc
$(INSTALL) -g 0 -m 644 -o 0 missile/* ${INSTALLDIR}/missile
$(INSTALL) -g 0 -m 644 -o 0 sound/* ${INSTALLDIR}/sound
$(INSTALL) -g 0 -m 644 -o 0 stock/* ${INSTALLDIR}/stock
$(INSTALL) -g 0 -m 644 -o 0 tank/* ${INSTALLDIR}/tank
$(INSTALL) -g 0 -m 644 -o 0 tankgun/* ${INSTALLDIR}/tankgun
$(INSTALL) -g 0 -m 644 -o 0 title/* ${INSTALLDIR}/title
$(INSTALL) -g 0 -m 644 -o 0 text/* ${INSTALLDIR}/text
user:
INSTALLDIR=./ FLAGS=-DLINUX $(MAKE) -C src
winuser:
INSTALLDIR=./ FLAGS=-DWIN32 $(MAKE) -C src -f Makefile.windows
osxuser:
INSTALLDIR=./ FLAGS="-DMACOSX" $(MAKE) -C src -f Makefile.bsd
ubuntu:
FLAGS="-DLINUX -DUBUNTU" $(MAKE) -C src
clean:
rm -f atanks atanks.exe
$(MAKE) -C src clean
dist: source-dist i686-dist win32-dist
source-dist:
cd ../; \
rm -f ${FILENAME}.tar.gz; \
tar cvf ${FILENAME}.tar atanks/src/*.cpp atanks/src/*.h atanks/src/Makefile atanks/src/Makefile.windows atanks/Makefile ${DISTCOMMON}; \
gzip ${FILENAME}.tar
i686-dist:
cd ../; \
rm -f ${FILENAME}-i686-dist.tar; \
rm -f ${FILENAME}-i686-dist.tar.gz; \
strip atanks/atanks; \
tar cvf ${FILENAME}-i686-dist.tar atanks/atanks ${DISTCOMMON}; \
gzip ${FILENAME}-i686-dist.tar;
win32-dist:
cd ../; \
rm -f ${FILENAME}-win32-dist.zip; \
zip ${FILENAME}-win32-dist.zip atanks/Atanks.exe atanks/alleg40.dll ${DISTCOMMON};