Software /
code /
prosody
Comparison
makefile @ 12313:469e4453ed01
make: Split up install targets to allow different subset
The prosody-trunk nightly packages currently use the Debian dh-lua
framework to install core/, net/ and util/ into Lua-versioned directory
trees, while plugins and executables should still be installed like
before.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 13 Feb 2022 16:53:56 +0100 |
parent | 11750:a8760562a096 |
child | 12465:4a087713cffe |
comparison
equal
deleted
inserted
replaced
12312:8119a58b3a5c | 12313:469e4453ed01 |
---|---|
28 $(MAKE) -C util-src install | 28 $(MAKE) -C util-src install |
29 .if $(EXCERTS) == "yes" | 29 .if $(EXCERTS) == "yes" |
30 $(MAKE) -C certs localhost.crt example.com.crt | 30 $(MAKE) -C certs localhost.crt example.com.crt |
31 .endif | 31 .endif |
32 | 32 |
33 install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so | 33 install-etc: prosody.cfg.lua.install |
34 $(MKDIR) $(BIN) $(CONFIG) $(MODULES) $(SOURCE) | 34 $(MKDIR) $(CONFIG) |
35 $(MKDIR_PRIVATE) $(DATA) | |
36 $(MKDIR) $(MAN)/man1 | |
37 $(MKDIR) $(CONFIG)/certs | 35 $(MKDIR) $(CONFIG)/certs |
38 $(MKDIR) $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util | 36 test -f $(CONFIG)/prosody.cfg.lua || $(INSTALL_DATA) prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua |
37 .if $(EXCERTS) == "yes" | |
38 $(INSTALL_DATA) certs/localhost.crt certs/localhost.key $(CONFIG)/certs | |
39 $(INSTALL_DATA) certs/example.com.crt certs/example.com.key $(CONFIG)/certs | |
40 .endif | |
41 | |
42 install-bin: prosody.install prosodyctl.install | |
43 $(MKDIR) $(BIN) | |
39 $(INSTALL_EXEC) ./prosody.install $(BIN)/prosody | 44 $(INSTALL_EXEC) ./prosody.install $(BIN)/prosody |
40 $(INSTALL_EXEC) ./prosodyctl.install $(BIN)/prosodyctl | 45 $(INSTALL_EXEC) ./prosodyctl.install $(BIN)/prosodyctl |
46 | |
47 install-core: | |
48 $(MKDIR) $(SOURCE) | |
49 $(MKDIR) $(SOURCE)/core | |
41 $(INSTALL_DATA) core/*.lua $(SOURCE)/core | 50 $(INSTALL_DATA) core/*.lua $(SOURCE)/core |
51 | |
52 install-net: | |
53 $(MKDIR) $(SOURCE) | |
54 $(MKDIR) $(SOURCE)/net | |
42 $(INSTALL_DATA) net/*.lua $(SOURCE)/net | 55 $(INSTALL_DATA) net/*.lua $(SOURCE)/net |
43 $(MKDIR) $(SOURCE)/net/http $(SOURCE)/net/resolvers $(SOURCE)/net/websocket | 56 $(MKDIR) $(SOURCE)/net/http $(SOURCE)/net/resolvers $(SOURCE)/net/websocket |
44 $(INSTALL_DATA) net/http/*.lua $(SOURCE)/net/http | 57 $(INSTALL_DATA) net/http/*.lua $(SOURCE)/net/http |
45 $(INSTALL_DATA) net/resolvers/*.lua $(SOURCE)/net/resolvers | 58 $(INSTALL_DATA) net/resolvers/*.lua $(SOURCE)/net/resolvers |
46 $(INSTALL_DATA) net/websocket/*.lua $(SOURCE)/net/websocket | 59 $(INSTALL_DATA) net/websocket/*.lua $(SOURCE)/net/websocket |
60 | |
61 install-util: util/encodings.so util/encodings.so util/pposix.so util/signal.so | |
62 $(MKDIR) $(SOURCE) | |
63 $(MKDIR) $(SOURCE)/util | |
47 $(INSTALL_DATA) util/*.lua $(SOURCE)/util | 64 $(INSTALL_DATA) util/*.lua $(SOURCE)/util |
65 $(MAKE) install -C util-src | |
48 $(INSTALL_DATA) util/*.so $(SOURCE)/util | 66 $(INSTALL_DATA) util/*.so $(SOURCE)/util |
49 $(MKDIR) $(SOURCE)/util/sasl | 67 $(MKDIR) $(SOURCE)/util/sasl |
50 $(INSTALL_DATA) util/sasl/*.lua $(SOURCE)/util/sasl | 68 $(INSTALL_DATA) util/sasl/*.lua $(SOURCE)/util/sasl |
51 $(MKDIR) $(SOURCE)/util/human | 69 $(MKDIR) $(SOURCE)/util/human |
52 $(INSTALL_DATA) util/human/*.lua $(SOURCE)/util/human | 70 $(INSTALL_DATA) util/human/*.lua $(SOURCE)/util/human |
53 $(MKDIR) $(SOURCE)/util/prosodyctl | 71 $(MKDIR) $(SOURCE)/util/prosodyctl |
54 $(INSTALL_DATA) util/prosodyctl/*.lua $(SOURCE)/util/prosodyctl | 72 $(INSTALL_DATA) util/prosodyctl/*.lua $(SOURCE)/util/prosodyctl |
73 | |
74 install-plugins: | |
75 $(MKDIR) $(MODULES) | |
55 $(MKDIR) $(MODULES)/mod_pubsub $(MODULES)/adhoc $(MODULES)/muc $(MODULES)/mod_mam | 76 $(MKDIR) $(MODULES)/mod_pubsub $(MODULES)/adhoc $(MODULES)/muc $(MODULES)/mod_mam |
56 $(INSTALL_DATA) plugins/*.lua $(MODULES) | 77 $(INSTALL_DATA) plugins/*.lua $(MODULES) |
57 $(INSTALL_DATA) plugins/mod_pubsub/*.lua $(MODULES)/mod_pubsub | 78 $(INSTALL_DATA) plugins/mod_pubsub/*.lua $(MODULES)/mod_pubsub |
58 $(INSTALL_DATA) plugins/adhoc/*.lua $(MODULES)/adhoc | 79 $(INSTALL_DATA) plugins/adhoc/*.lua $(MODULES)/adhoc |
59 $(INSTALL_DATA) plugins/muc/*.lua $(MODULES)/muc | 80 $(INSTALL_DATA) plugins/muc/*.lua $(MODULES)/muc |
60 $(INSTALL_DATA) plugins/mod_mam/*.lua $(MODULES)/mod_mam | 81 $(INSTALL_DATA) plugins/mod_mam/*.lua $(MODULES)/mod_mam |
61 .if $(EXCERTS) == "yes" | 82 |
62 $(INSTALL_DATA) certs/localhost.crt certs/localhost.key $(CONFIG)/certs | 83 install-man: |
63 $(INSTALL_DATA) certs/example.com.crt certs/example.com.key $(CONFIG)/certs | 84 $(MKDIR) $(MAN)/man1 |
64 .endif | |
65 $(INSTALL_DATA) man/prosodyctl.man $(MAN)/man1/prosodyctl.1 | 85 $(INSTALL_DATA) man/prosodyctl.man $(MAN)/man1/prosodyctl.1 |
66 test -f $(CONFIG)/prosody.cfg.lua || $(INSTALL_DATA) prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua | 86 |
87 install-meta: | |
67 -test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version | 88 -test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version |
68 $(MAKE) install -C util-src | 89 |
90 install-data: | |
91 $(MKDIR_PRIVATE) $(DATA) | |
92 | |
93 install: install-util install-net install-core install-plugins install-bin install-etc install-man install-meta install-data | |
69 | 94 |
70 clean: | 95 clean: |
71 rm -f prosody.install | 96 rm -f prosody.install |
72 rm -f prosodyctl.install | 97 rm -f prosodyctl.install |
73 rm -f prosody.cfg.lua.install | 98 rm -f prosody.cfg.lua.install |