diff --git a/Makefile b/Makefile index dd2c255..dd93bcf 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ sokochez: $(OBJ) %.o: %.cpp $(CXX) -o $@ -c $< $(CXXFLAGS) $(DEF) -.PHONY: clean mrproper +.PHONY: clean mrproper install uninstall clean: -rm ./src/*.o @@ -24,3 +24,12 @@ mrproper: clean pdf: pdflatex -output-directory bin/ *.tex + +install: sokochez + mkdir -p $(DESTDIR)$(PREFIX)/usr/share/games/sokochez + cp -R maps $(DESTDIR)$(PREFIX)/usr/share/games/sokochez + cp -R $(BIN)$(EXEC) $(DESTDIR)$(PREFIX)/usr/games/sokochez + cp -R ./sokochez-story $(DESTDIR)$(PREFIX)/usr/games/sokochez-story + +uninstall: + rm -rf $(DESTDIR)$(PREFIX)/usr/share/games/sokochez $(DESTDIR)$(PREFIX)/usr/games/sokochez $(DESTDIR)$(PREFIX)/usr/games/sokochez-story diff --git a/sokochez-story b/sokochez-story new file mode 100755 index 0000000..dc0ed0a --- /dev/null +++ b/sokochez-story @@ -0,0 +1,3 @@ +#!/bin/sh + +exec sokochez /usr/share/games/sokochez/maps/*/*