What are the rules regarding writing Makefiles to be part of CTAN packages?
I would like to include a Makefile in a package I wrote. The package is in
.dtx format with its
.ins file embedded.
When I run
make, it generates all package files, including
.tex examples. Of course it also compiles the documentation in
When I run
make all, it behaves the same way as make but also all
.tex examples are compiled.
make clean removes all generated files except the
.cls and the documentation.
make distclean removes also these files.
1) There is a problem distributing a package with a Makefile` that behaves this way?
This Makefile includes UNIX syntax and UNIX commands, in particular I have shell variable pointed to /bin/sh, which is the default:
SHELL = /bin/sh
Also I do use
for command to compile everything and
sed to extract the version number from
2) It is OK distributing the package with such a Makefile? MiKTeX users won't be able to compile anything. Or... are
Makefiles always useless to Windows users?
3) How safe is using
latexmk to compile everything? This Perl script is present on MiKTeX basic installation? I'm running Debian and I've it installed but I don't know if it is a common package on LaTeX distributions...
4) What is the best place to put
makeindex lines (for change history and index)? in
Makefile between two
latexmk...) runs or inside the
If I let
makeindex, the resulting
.gls file is created), so I must put
makeindex lines by hand on
Makefile or inside the
.dtx (inside it embedded