#
# install a standard module with optional c component in the system module path
#
install: $(MODULE_INSTALL)
@if test "x$(OBJS)" != "x" ; then \
$(TMP_BINDIR)/install_module module.so $(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODULE_WRAPPER_PREFIX)$(MODNAME).so && \
fi; \
if test "x$(MODULE_PMOD_IN)" != "x"; then \
$(TMP_BINDIR)/install_module module.pmod $(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODNAME).pmod ;\
fi;
So mine might be getting dynamic_module_makefile.in from somewhere else...
Hmm, so removed /usr/local/pike/8.0.610/include/pike/modules/dynamic_module_makefile, and did a reinstall (sudo make install) of pike from Pike-8.0.610, and the proper code (2 stanzas above) got output to the incorrect code (just above) in my file, which is causing problems doing pike -x module install.
So it looks like the part:
if [ -f $(MODNAME).pdb ]; then \
cp $(MODNAME).pdb $(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODULE_WRAPPER_PREFIX); \
else :; fi; \
is being removed for some reason, which is causing a problem with && being improper syntax for the resulting shell code.
Weird...