2015-11-24 14:59:27 -03:00
|
|
|
CC = gcc
|
|
|
|
MV = mvn
|
|
|
|
|
|
|
|
CFLAGS=-Wall -Werror -ggdb
|
|
|
|
|
|
|
|
BIN=DroidQuest
|
2016-12-22 14:43:22 -03:00
|
|
|
JAR=dq-2.8.jar
|
2015-11-24 14:59:27 -03:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(CC) $(CFLAGS) dq.c -o dq.o
|
|
|
|
$(CC) $(CFLAGS) dq.c -o $(BIN)
|
|
|
|
$(MV) install
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -vp /usr/share/DroidQuest/chips
|
|
|
|
cp -v src/main/resources/chips/* /usr/share/DroidQuest/chips/
|
|
|
|
cp -v target/$(JAR) /usr/share/DroidQuest/$(JAR)
|
|
|
|
cp -v $(BIN) /usr/bin/$(BIN)
|
2015-11-24 22:58:24 -03:00
|
|
|
cp -v DroidQuest.png /usr/share/pixmaps/DroidQuest.png
|
|
|
|
cp -v DroidQuest.desktop /usr/share/applications/DroidQuest.desktop
|
2015-11-24 14:59:27 -03:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -v /usr/share/DroidQuest/chips/*
|
|
|
|
rm -v /usr/share/DroidQuest/$(JAR)
|
|
|
|
rmdir -v /usr/share/DroidQuest/chips
|
|
|
|
rmdir -v /usr/share/DroidQuest
|
|
|
|
rm -v /usr/bin/$(BIN)
|
2015-11-24 22:58:24 -03:00
|
|
|
rm -v /usr/share/pixmaps/DroidQuest.png
|
|
|
|
rm -v /usr/share/applications/DroidQuest.desktop
|
2015-11-24 14:59:27 -03:00
|
|
|
|
|
|
|
clean:
|
2015-11-26 10:47:15 -03:00
|
|
|
rm -vR -f *.o *.~ target DroidQuest
|