diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2019-11-28 19:54:57 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2019-11-28 19:54:57 +0100 |
commit | b55a8004ed4c3d11d0d820480eca4769665ef38b (patch) | |
tree | bae9d9839fbde9cf2cbbb2bce9d64a7177cdc3ba /Makefile | |
parent | a56c56ead319ab150dcb5c9f055e62f4103a59a7 (diff) | |
download | searxng-b55a8004ed4c3d11d0d820480eca4769665ef38b.tar.gz searxng-b55a8004ed4c3d11d0d820480eca4769665ef38b.zip |
boilerplate: add inital Makefile with run & install targets
Add *Makefile* boilerplate useful for python projects. All python tasks are
using a virtualenv from ./local/py3
$ make help
run - run developer instance
install - developer install (./local)
uninstall - uninstall (./local)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..42e492d0d --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +# -*- coding: utf-8; mode: makefile-gmake -*- + +PYOBJECTS = searx +PY_SETUP_EXTRAS ?= \[test\] + +include utils/makefile.include +include utils/makefile.python + +all: clean install + +PHONY += help +help: + @echo ' run - run developer instance' + @echo ' install - developer install (./local)' + @echo ' uninstall - uninstall (./local)' + @echo '' + @$(MAKE) -s -f utils/makefile.include make-help + @echo '' + @$(MAKE) -s -f utils/makefile.python python-help + +PHONY += install +install: pyenvinstall + +PHONY += uninstall +uninstall: pyenvuninstall + +PHONY += clean +clean: pyclean + $(call cmd,common_clean) + +PHONY += run +run: pyenvinstall + $(Q) ( \ + sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \ + sleep 2 ; \ + xdg-open http://127.0.0.1:8888/ ; \ + sleep 3 ; \ + sed -i -e "s/debug : True/debug : False/g" ./searx/settings.yml ; \ + ) & + $(PY_ENV)/bin/python ./searx/webapp.py + +.PHONY: $(PHONY) |