Lucas
5f69d4a129
makefile: fix prosody.version target
...
POSIX is quite explicit regarding the precedence of AND-OR lists [0]:
> The operators "&&" and "||" shall have equal precedence and shall be
> evaluated with left associativity. For example, both of the following
> commands write solely `bar` to standard output:
> false && echo foo || echo bar
> true || echo foo && echo bar
Given that, `prosody.version` target behaves as
((((((test -f prosody.release && cp ...) ||
test -f ...) &&
sed ...) ||
test -f ...) &&
hexdump ...) ||
echo unknown > $@)
In the case of release tarballs, `prosody.release` does exist, so the
first AND pair is executed. Given that it's successful, then the first
`test -f` in the OR pair is ignored, and instead the `sed` in the AND
pair is executed. `sed` success, as `.hg_archival.txt` exists, making
the second `test -f` in the OR pair ignored, and `hexdump` in the AND
pair is executed. Now, given that `.hg` doesn't exist, it fails, so the
last `echo` is run, overwriting `prosody.version` with `unknown`.
This can be worked around placing `()` around the AND pairs. Decided to use
conditionals instead, as I think they better communicate the intention
of the block.
[0]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03
4 years ago
Kim Alvefur
1deae0e925
GNUmakefile: Install the new util/prosodyctl/* too (thanks pascal.pascher)
6 years ago
Kim Alvefur
5fc5fe64ee
GNUmakefile: Install util.human.*
6 years ago
Kim Alvefur
0a200a4ce3
makefile: Remove installation of mod_s2s dir
...
Already removed from the GNUmakeflie.
6 years ago
Kim Alvefur
cdd71f28ac
Add makefiles compatible with BSD make
8 years ago
Kim Alvefur
e156c05ad4
Rename Makefile -> GNUmakefile to reflect dependency on GNU Make
8 years ago
Michel Le Bihan
8e377a8d55
Makefile: Also package /net/resolvers
...
Fixes #1094
8 years ago
Kim Alvefur
4e1f9c8796
Makefile: Tell busted to use the configured Lua version (or C modules won't load)
8 years ago
Waqas Hussain
94c243d8e6
Makefile: Update `make test` to use the "busted" test runner
8 years ago
Kim Alvefur
49c6a0dd6f
Makefile: Install mod_mam ( fixes #825 )
9 years ago
Kim Alvefur
8fa3305358
Makefile: Add 'test' to phony targets so `make test` runs tests even if a file 'test' exists
9 years ago
Kim Alvefur
3dd1ce8680
Makefile: Fix installing modules into their correct subdirectories (thanks mimi89999)
9 years ago
Kim Alvefur
ca9cbd607f
Makefile: Preserve timestamps of installed files ( fixes #547 )
9 years ago
Kim Alvefur
07c7d4e794
Makefile: Refactor all uses of the install command with variables, allowing them to be overridden
9 years ago
Kim Alvefur
b0701fb30f
Makefile: Use install to copy plugins that live in subdirectories instead of recursive cp
9 years ago
Kim Alvefur
4813cf4bde
Makefile: Use more specific globbing for util.sasl.* (like 5a60b4705bc3)
9 years ago
Matthew Wild
39dceba258
tests: Add extra tests for util.json
10 years ago
Matthew Wild
61688d5064
Makefile: Reduce verbosity of 'make test' so it only shows test failures
10 years ago
Kim Alvefur
2c3bcf3a57
Makefile: Use runtime set by configure ( fixes #629 )
10 years ago
Kim Alvefur
2ff321a3c7
Makefile: Add 'test' target that runs tests
10 years ago
Kim Alvefur
b3a384b2e9
Makefile: Use more specific globbing for core directory in Makefile (Thanks Robert Scheck) ( fixes #532 )
10 years ago
Kim Alvefur
787f6a522a
Makefile: Use hypen to tell Make when to ignore errors
10 years ago
Kim Alvefur
8891876d7d
Makefile: Support generating prosody.version from hg archive metadata file
10 years ago
Kim Alvefur
4d24241616
Makefile: Simplify generation of prosody.version using magic Make magic
10 years ago
Kim Alvefur
f2bb338051
Makefile: Fix building prosody.version (.hg/dirstate is a file, not a directory)
10 years ago
Matthew Wild
63f8291d16
configure, Makefile: Make compatible with plain Bourne shell as used on Solaris. Fixes #418 (thanks jcea)
10 years ago
Matthew Wild
83ca1bd5d1
configure, Makefile: Add --libdir option to ./configure, allowing you to override the $PREFIX/lib/ default. Fixes #470 .
11 years ago
Kim Alvefur
6769313ce9
Makefile: Add net/websocket to install target
11 years ago
Matthew Wild
7f2a6a29b6
Makefile: Change sed regex to be compatible with FreeBSD's odd sed, and change / to | to allow paths to be used in RUNWITH (thanks Ben)
12 years ago
Kim Alvefur
addfb8275a
Makefile, configure: Add option for disabling generation of example certificates
12 years ago
Kim Alvefur
7e594b0b3c
Makefile, certs: Generate example certificates on build, remove the old static one
12 years ago
Matthew Wild
0e656606c0
Makefile: Specify explicit mode when installing prosody.version, to avoid it defaulting to something nasty (executable)
13 years ago
Kim Alvefur
2b1cd1a3ae
configure, Makefile: Allow runtime to be overridden.
13 years ago
Matthew Wild
59edec552f
Makefile: Fix for net/http
14 years ago
Kim Alvefur
326b9c2cc2
Makefile: Use cp instead of install, and make sure the correct umask is set
14 years ago
Thijs Alkemade
203c5b4d85
Fix make install for mod_s2s.
14 years ago
Kim Alvefur
cea60b7a5d
Makefile: Fix making of prosody.version
14 years ago
Kim Alvefur
7eae765921
Makefile: Fix making of prosody.version
14 years ago
Kim Alvefur
1f496b5027
Makefile: Merge identical rules and some other improvements.
14 years ago
Kim Alvefur
f4c963ef6a
Makefile: Merge identical rules and some other improvements.
14 years ago
Matthew Wild
850d092305
Makefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile
14 years ago
Matthew Wild
d2d66b4078
commit d2fb8a5ff43fcf3e94e5e518aba175503590ecda
...
Author: Brian Cully <bjc@kublai.com>
Date: Mon Jun 14 17:30:52 2010 -0400
Install adhoc submodules
16 years ago
Matthew Wild
cb24bc1a12
Makefile: Remove fallbacks/
16 years ago
Matthew Wild
9d3c6849c0
Makefile: Remove fallbacks/
16 years ago
Matthew Wild
b544f41cef
Makefile: Fix to install new util/sasl directory
16 years ago
matthew
53a3a8df37
Fix for Makefile hack to install MUC plugin
17 years ago
Waqas Hussain
d372008d04
Updated the Makefile to work with the MUC plugin folder.
17 years ago
Waqas Hussain
9b3f3c93e3
Fixed: Zeros could be stripped from the version string the Makefile extracts from the local hg repository (thanks albert)
17 years ago
Dwayne Bent
507c460971
Added man page for prosodyctl
17 years ago
Matthew Wild
7ba8dae5df
Makefile: Install fallbacks/ directory
17 years ago