make a install-standalone rule to install the spkit wherever you want, use it in the zip rule

This commit is contained in:
<bdauvergne@entrouvert.com> 1210088590 +0200 0001-01-01 00:00:00 +00:00
parent e31666ee90
commit 2b0032d0f1
1 changed files with 13 additions and 6 deletions

View File

@ -19,12 +19,7 @@ all:
zip:
rm -rf build
mkdir -p build/spkitlasso
mkdir -p build/data
cp endpoints/* build
cp include/*.php build/spkitlasso/
sed -i 's#^\( *\)\$$path#\1// $$path#;n;s#// \$$path#$$path#' build/spkitlasso/*datadir*php
make install-standalone DESTDIR=.
cd build; zip -r ../$(ZIP) *
rm -rf build
@ -49,9 +44,21 @@ install-files:
install -m 644 -t $(DESTDIR)$(DOCDIR) README INSTALL
install -m 644 -t $(DESTDIR)$(DOCDIR)/exemples exemples/*.*
install-standalone:
mkdir -p $(DESTDIR)/build/spkitlasso
mkdir -p $(DESTDIR)/build/data
cp endpoints/* $(DESTDIR)/build
cp include/*.php $(DESTDIR)/build/spkitlasso/
cp exemples/index.php $(DESTDIR)/build/exemple.php
sed -i 's#^\( *\)\$$path#\1// $$path#;n;s#// \$$path#$$path#' $(DESTDIR)/build/spkitlasso/*datadir*php
uninstall:
rm -rf $(DESTDIR)$(DATADIR) $(DESTDIR)$(DOCDIR) $(DESTDIR)$(PHPINCLUDEDIR)/$(NAME) $(DESTDIR)$(VARDIR)
install: install-directories install-files
distclean:
rm -rf $(FULL)
clean:
-rm -rf $(ZIP)