Move generatePrologBasics into Makefile
The motivation for this change is twofold:
- First, we get a cleaner separation of concerns, since
sicstusbasics.pl
no longer contains shell commands that describe how to copy itself around, instead the Makefile deals with this. - Secondly, under MinGW on Windows
make
(including recursive invocations) has access to Unix tools likesed
orcat
, but subprocess calls fromsicstus
do not (sincesicstus
uses the native Microsoft VC runtime rather than a Unix emulation). This resulted in errors when trying to call these tools fromgeneratePrologBasics
, which we sidestep by moving the logic into the Makefile directly.