diff --git a/makefile b/makefile index 4daa419..822b5f5 100755 --- a/makefile +++ b/makefile @@ -6,6 +6,7 @@ VERSION = 1.1 PROG = starfighter PACK = starfighter.pak DOCS = docs/* +DATA = data/* gfx/* music/* sound/* BINDIR = /usr/games/ DATADIR = /usr/share/games/parallelrealities/ @@ -35,3 +36,11 @@ install: install -o root -g games -m 755 $(PROG) $(BINDIR)$(PROG) install -o root -g games -m 644 $(PACK) $(DATADIR)$(PACK) cp $(DOCS) $(DOCDIR) + +$(PACK): pack.py $(DATA) + ./pack.py $(PACK) $(DATA) + +unpack: unpack.py + ./unpack.py $(PACK) + +.PHONY: all clean distclean unpack diff --git a/pack.py b/pack.py new file mode 100755 index 0000000..53a891a --- /dev/null +++ b/pack.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# pack.py - pack files into a Parallel Realities Starfighter .pak file +# Copyright (C) 2006 Josh Triplett