Commit e9977322 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

fix make install for directories containing spaces. #7

parent 20123d46
Loading
Loading
Loading
Loading
+4 −3
Changes for Makefile: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -23,15 +23,16 @@ install-basex: # BaseX & dépendances: Téléchargement, installation et défini


install: install-basex ## Installation de MaX
	@echo $(SRC_DIR)
	@if [ -d '.max/basex/webapp/max' ]; then\
		echo 'MaX install OK.';\
	else\
		mkdir -p .max/basex/webapp/max;\
	  	mkdir -p .max/basex/repo/max;\
		ln -s $(SRC_DIR)/main/webapp/routes.xqm .max/basex/webapp/max/routes.xqm;\
		ln -s $(SRC_DIR)/resources .max/resources;\
		ln -s "$(SRC_DIR)/main/webapp/routes.xqm" .max/basex/webapp/max/routes.xqm;\
		ln -s "$(SRC_DIR)/resources" .max/resources;\
		ln -s ../../../../expath-pkg.xml .max/basex/repo/max/expath-pkg.xml;\
		ln -s $(SRC_DIR)/main/core .max/basex/repo/max/max;\
		ln -s "$(SRC_DIR)/main/core" .max/basex/repo/max/max;\
		ln -s ../fixtures .max/fixtures;\
		echo 'MaX install done.';\
	fi