Fossil Forum

"make -f Makefile.classic" does nothing

"make -f Makefile.classic" does nothing

(1) By Peter MacDonald (pmacdona) on 2020-01-21 23:19:06 [source]

It looks like the culprit is APPNAME got removed.
As usual, apologies if was already reported...

--- src/	2020-01-21 15:08:53.024415215 -0800
+++ src/	2020-01-21 15:08:54.936415268 -0800
@@ -511,6 +511,9 @@
  $(OBJDIR)/xfer.o \
  $(OBJDIR)/xfersetup.o \
+APPNAME = fossil$(E)
 all:	$(OBJDIR) $(APPNAME)
 install:	all

(2) By Stephan Beal (stephan) on 2020-01-22 00:41:58 [link] [source] in reply to 1

TL;DR: the fix actually belongs in Makefile.classic (see below), and i will commit it as soon as my local tests are done.


That seems to have been a casualty of the port to autosetup (ages ago - apparently few people use that makefile). is generated from src/makemake.tcl, but we can't inject APPNAME there without also refactoring, which defines APPNAME immediately before it imports

The fix, it seems, is to have Makefile.classic follow the same pattern as, and add:

APPNAME = fossil$(E)

Near the bottom of Makefile.classic, before:

include $(SRCDIR)/

Thank you for the report!

(3) By Peter MacDonald (pmacdona) on 2020-01-22 03:10:32 [link] [source] in reply to 2

Ah thanks. I figured it was something like that.