make a install-standalone rule to install the spkit wherever you want, use it in the zip rule
This commit is contained in:
parent
e31666ee90
commit
2b0032d0f1
19
Makefile
19
Makefile
|
@ -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)
|
||||
|
|
Reference in New Issue