Re: [PATCH] Clean up the int/enum option_enum mixing
Urs Janßen <[email protected]>
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jun 21, 2005 at 09:32:17PM -0400, Thomas Dickey wrote: > > - the Makefile isn't yet adapted to the new dependency options_menu.h > > currently you have to build makecfg first, then tincfg.h (and > > options_menu.h) and finally tin > > Can somebody help me out with this? > > attached (along with configure-script updates). makecfg screws up optons_menu.h if given as last argument and proto.h (and thus all source-files) depend on options_menu.h, so it must be generated early. the following patch should fix this. --- src/Makefile.in 2005-06-22 08:34:21.329028488 +0200 +++ src/Makefile.in 2005-06-22 08:34:31.020256081 +0200 @@ -464,6 +464,10 @@ $(INCDIR)/tcurses.h \ $(INCDIR)/proto.h $(EXTRA_PCREHDRS) $(EXTRA_INTLLIBS) +TIN_DEP = \ + $(TIN_HDR) \ + options_menu.h + @PCREDIR_MAKE@../pcre/pcre.h ../pcre/$(PRELIB)pcre.a : @PCREDIR_MAKE@ @$(ECHO) "Building Philip Hazel's Perl regular expressions library ..." @PCREDIR_MAKE@ @$(CD) ../pcre && $(MAKE) @cf_cv_makeflags@ $(PRELIB)pcre.a @@ -478,7 +482,7 @@ options_menu.h : $(SRCDIR)/tincfg.tbl \ makecfg$X - ./makecfg $(SRCDIR)/tincfg.tbl $@ + ./makecfg $(SRCDIR)/tincfg.tbl tincfg.h makecfg$X : $(SRCDIR)/makecfg.c $(TIN_HDR)