@@ -18,18 +18,10 @@ With the aim to simplify development cycles, started with :pull:`1756` a
18Makefiles, we recommend to read gnu-make_ introduction.
18Makefiles, we recommend to read gnu-make_ introduction.
20The usage is simple, just type ``make {target-name}`` to *build* a target.
20The usage is simple, just type ``make {target-name}`` to *build* a target.
21−Calling the ``help`` target gives a first overview::
21+Calling the ``help`` target gives a first overview (``make help``):
23− $ make help
23+.. program-output:: bash -c "cd ..; make --no-print-directory help"
24− test - run developer tests
24+
25− docs - build documentation
26− docs-live - autobuild HTML documentation while editing
27− run - run developer instance
28− install - developer install (./local)
29− uninstall - uninstall (./local)
30− gh-pages - build docs & deploy on gh-pages branch
31− clean - drop builds and environments
34.. contents:: Contents
26.. contents:: Contents
@@ -44,25 +36,28 @@ Makefile setup
45.. _git stash: https://git-scm.com/docs/git-stash
37.. _git stash: https://git-scm.com/docs/git-stash
47−The main setup is done in the :origin:`Makefile`::
49− export GIT_URL=https://github.com/asciimoo/searx
50− export GIT_BRANCH=master
51− export SEARX_URL=https://searx.me
52− export DOCS_URL=https://asciimoo.github.io/searx
54.. sidebar:: fork & upstream
39.. sidebar:: fork & upstream
56 Commit changes in your (local) branch, fork or whatever, but do not push them
41 Commit changes in your (local) branch, fork or whatever, but do not push them
57 upstream / `git stash`_ is your friend.
42 upstream / `git stash`_ is your friend.
59−:GIT_URL: Changes this, to point to your searx fork.
44+The main setup is done in the :origin:`Makefile`.
46+.. literalinclude:: ../../Makefile
47+ :start-after: START Makefile setup
48+ :end-before: END Makefile setup
50+:GIT_URL: Changes this, to point to your searx fork.
61:GIT_BRANCH: Changes this, to point to your searx branch.
51:GIT_BRANCH: Changes this, to point to your searx branch.
52+:SEARX_URL: Changes this, to point to your searx instance.
53+:DOCS_URL: If you host your own (*brand*) documentation, change this URL.
63−:SEARX_URL: Changes this, to point to your searx instance.
55+If you change any of this build environment variables, you have to run ``make
65−:DOCS_URL: If you host your own (branded) documentation, change this URL.
58+ $ make buildenv
60+ build utils/brand.env
67.. _make pyenv:
62.. _make pyenv: