Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
When changing a script in `src/scripts`, `make` would need to be invoked
twice for a proper build: once for `scripts.h` and once for the `.o`
files depending on it.
This commit fixes this by integrating `src/scripts/Makefile` into
`src/Makefile` to allow for proper dependency update detection.
|
|
While "input.c" includes "scripts/scripts.h", which is generated
dynamically by the build system, the Makefile does not state a
dependency of "input.c" on "scripts/scripts.h". Add the dependency to
fix broken builds.
|
|
|
|
|
|
|
|
|
|
Revert "Don't duplicate CFLAGS and CPPFLAGS."
This reverts commit 0cc0db9f7d40fdf9e88f20101a5183e35ba2ea91.
|
|
Don't put the CPPFLAGS and CFLAGS duplicate to the compiler which lead
to warnings about redefinition of constants on command line like
<command-line>:0:0: warning: "EXTENSIONDIR" redefined
<command-line>:0:0: note: this is the location of the previous
definition
|
|
|
|
The option given to the upper most make call are already given as
MAKEFLAGS on recursive calls to make. So there is no need to give them
explicitly.
|
|
Add the hint css direct to webkit instead of manipulating the DOM to add
a style node. By the way the default style was removed from config.def.h
into src/scripts directory so that the css is minified during
compilation.
|
|
Avoid naming collisions and prefix the minified scripts by JS_ so that
it's obvious what's their content.
|
|
The echo lines where a light alternative to the long compiler options
lines, so there is no real benefit on showing the 'echo' itself.
|
|
This allows to compile with -Wl,--as-needed option which affects only
those libraries written after that option on the command line.
|
|
|
|
technically, the vimb binary does not depend on webext, but the all
target should build vimb and webext
|
|
without this patch, the make target would keep appending updated js code
to scripts.h and therefor create multiple instances of the C defines.
|
|
this allows better dependency tracking like regenerate scripts.h only if a
js file changed and only rebuild objects if scripts.h changed
|
|
We can't control dependencies in case all the subdirs are processed from
the upper most Makefile. So now the subdir make used to create the
webextension and the script is called from the src/Makefile which knows
somethings more about dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
Set CFLAGS that are not absolutely required with CFLAGS?=..., so that
user-defined CFLAGS take precedence. Made VERBOSE option that would toggle
between silent (previous) and verbose mode of CC directive processing.
|
|
|