diff options
Diffstat (limited to 'kgoldrunner/gamedata/Makefile.am')
-rw-r--r-- | kgoldrunner/gamedata/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kgoldrunner/gamedata/Makefile.am b/kgoldrunner/gamedata/Makefile.am new file mode 100644 index 00000000..a7fcca1e --- /dev/null +++ b/kgoldrunner/gamedata/Makefile.am @@ -0,0 +1,13 @@ +gamedatadir = $(kde_datadir)/kgoldrunner/system +gamedata_DATA = games.dat hi_level.dat hi_plws.dat hi_plwv.dat hi_wad.dat + +# Untar the file levels.tar and install levels/*.grl files. The "chown" and +# "chmod" ensure that installer owns files: even if installer is "root". The +# "|| true" commands make everything succeed when the installer is NOT "root". +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(gamedatadir) + pwd=`cd $(srcdir) && pwd` ;\ + cd $(DESTDIR)$(gamedatadir) && tar -xf $$pwd/levels.tar ;\ + chown -R root:root levels 2> /dev/null || true ;\ + chmod 644 levels/* 2> /dev/null || true + |