Comparison

makefile @ 12947:14a44b1a51d0

prosody.loader: Allow loading modules under 'prosody' namespace (#1223) Actually `hg mv`-ing all the files is disruptive, basically breaking everything from rebasing all my WIP draft commits to the package building. So instead, what if we didn't and instead rewrote package names as they are `require()`-d? Debian packages produced by the Prosody are already installed into this structure so much will Just Work if all require calls are updated.
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 13:51:43 +0100
parent 12465:4a087713cffe
comparison
equal deleted inserted replaced
12946:59478b295137 12947:14a44b1a51d0
41 41
42 install-bin: prosody.install prosodyctl.install 42 install-bin: prosody.install prosodyctl.install
43 $(MKDIR) $(BIN) 43 $(MKDIR) $(BIN)
44 $(INSTALL_EXEC) ./prosody.install $(BIN)/prosody 44 $(INSTALL_EXEC) ./prosody.install $(BIN)/prosody
45 $(INSTALL_EXEC) ./prosodyctl.install $(BIN)/prosodyctl 45 $(INSTALL_EXEC) ./prosodyctl.install $(BIN)/prosodyctl
46
47 install-loader:
48 $(MKDIR) $(SOURCE)
49 $(INSTALL_DATA) loader.lua $(SOURCE)
46 50
47 install-core: 51 install-core:
48 $(MKDIR) $(SOURCE) 52 $(MKDIR) $(SOURCE)
49 $(MKDIR) $(SOURCE)/core 53 $(MKDIR) $(SOURCE)/core
50 $(INSTALL_DATA) core/*.lua $(SOURCE)/core 54 $(INSTALL_DATA) core/*.lua $(SOURCE)/core
89 -test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version 93 -test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version
90 94
91 install-data: 95 install-data:
92 $(MKDIR_PRIVATE) $(DATA) 96 $(MKDIR_PRIVATE) $(DATA)
93 97
94 install: install-util install-net install-core install-plugins install-bin install-etc install-man install-meta install-data 98 install: install-util install-net install-core install-plugins install-bin install-etc install-man install-meta install-data install-loader
95 99
96 clean: 100 clean:
97 rm -f prosody.install 101 rm -f prosody.install
98 rm -f prosodyctl.install 102 rm -f prosodyctl.install
99 rm -f prosody.cfg.lua.install 103 rm -f prosody.cfg.lua.install