Comparison

GNUmakefile @ 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
child 12973:cc215923297f
comparison
equal deleted inserted replaced
12946:59478b295137 12947:14a44b1a51d0
39 39
40 install-bin: prosody.install prosodyctl.install 40 install-bin: prosody.install prosodyctl.install
41 $(MKDIR) $(BIN) 41 $(MKDIR) $(BIN)
42 $(INSTALL_EXEC) ./prosody.install $(BIN)/prosody 42 $(INSTALL_EXEC) ./prosody.install $(BIN)/prosody
43 $(INSTALL_EXEC) ./prosodyctl.install $(BIN)/prosodyctl 43 $(INSTALL_EXEC) ./prosodyctl.install $(BIN)/prosodyctl
44
45 install-loader:
46 $(MKDIR) $(SOURCE)
47 $(INSTALL_DATA) loader.lua $(SOURCE)
44 48
45 install-core: 49 install-core:
46 $(MKDIR) $(SOURCE) 50 $(MKDIR) $(SOURCE)
47 $(MKDIR) $(SOURCE)/core 51 $(MKDIR) $(SOURCE)/core
48 $(INSTALL_DATA) core/*.lua $(SOURCE)/core 52 $(INSTALL_DATA) core/*.lua $(SOURCE)/core
87 -test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version 91 -test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version
88 92
89 install-data: 93 install-data:
90 $(MKDIR_PRIVATE) $(DATA) 94 $(MKDIR_PRIVATE) $(DATA)
91 95
92 install: install-util install-net install-core install-plugins install-bin install-etc install-man install-meta install-data 96 install: install-util install-net install-core install-plugins install-bin install-etc install-man install-meta install-data install-loader
93 97
94 clean: 98 clean:
95 rm -f prosody.install 99 rm -f prosody.install
96 rm -f prosodyctl.install 100 rm -f prosodyctl.install
97 rm -f prosody.cfg.lua.install 101 rm -f prosody.cfg.lua.install