+2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Enable remake of lost LIBIMPL object files.
+
+ * Makefile.in (libimpl_remake): New macro; define it, and...
+ (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
+
2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
Implement more robust _get_output_format fallback handling.
> $@
# ...and ultimately discarded, after the requisite object file
-# has been compiled.
+# has been compiled; (note that this creates a vulnerability due
+# to possible loss of the object file, while the tracking file is
+# still in place; to circumvent this, we must be able to force a
+# remake of the tracking file, so also regenerating the .c file,
+# before it is compiled).
#
+libimpl_remake = { $(RM) $1; $(MAKE) --no-print-directory $1; }
%.libimpl.$(OBJEXT): %.libimpl
+ test -f $<.c || $(call libimpl_remake,$<)
$(CC) -c $(CPPFLAGS) $(LIBIMPL_CFLAGS) -o $@ $<.c
$(RM) $<.c