Allow data to be installed (will fail if dir doesn't exist).

This commit is contained in:
Steve 2018-03-19 22:52:00 +00:00
parent eae43acc73
commit d43811a32d
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ CXXFLAGS += -fms-extensions -std=gnu11
LDFLAGS += `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm -lz -lpng LDFLAGS += `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm -lz -lpng
SHARED_FILES = CHANGELOG LICENSE README.md gfx manual music sound icons SHARED_FILES = CHANGELOG LICENSE README.md data gfx manual music sound icons
DIST_FILES = $(SHARED_FILES) locale $(PROG) DIST_FILES = $(SHARED_FILES) locale $(PROG)
SRC_DIST_FILES = $(SHARED_FILES) src makefile* common.mk SRC_DIST_FILES = $(SHARED_FILES) src makefile* common.mk
@ -39,6 +39,7 @@ install:
mkdir -p $(INST_BIN_DIR) mkdir -p $(INST_BIN_DIR)
install -m 0755 $(PROG) $(INST_BIN_DIR) install -m 0755 $(PROG) $(INST_BIN_DIR)
mkdir -p $(INST_DATA_DIR) mkdir -p $(INST_DATA_DIR)
cp -r data $(INST_DATA_DIR)
cp -r gfx $(INST_DATA_DIR) cp -r gfx $(INST_DATA_DIR)
cp -r manual $(INST_DATA_DIR) cp -r manual $(INST_DATA_DIR)
cp -r music $(INST_DATA_DIR) cp -r music $(INST_DATA_DIR)