Skip to content

Commit

Permalink
Added install rule, script to play the story mode after install
Browse files Browse the repository at this point in the history
  • Loading branch information
ogbaba committed Jul 9, 2017
1 parent 556a1d1 commit c437804
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
3 changes: 3 additions & 0 deletions sokochez-story
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

exec sokochez /usr/share/games/sokochez/maps/*/*

0 comments on commit c437804

Please sign in to comment.