summaryrefslogtreecommitdiffstats
path: root/kgoldrunner/gamedata/Makefile.am
blob: a7fcca1e733cf24fad17fd96680e3fbe9f89e2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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