This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Integrated preprocessor patch - revised




* Zack Weinberg (zack@wolery.cumb.org) [20000911 20:32]:

> >   - have a target in po/Makefile that checks the dependencies of
> >     gcc.pot (listed in po/POTFILES.in) but doesn't try to build it.
> > 
> > That way bootstrapping gcc wouldn't fail only for me and thus such errors
> > would be caught much earlier. If you agree, I'll try to come up with a patch
> > that tackles the second point.
> 
> I like this idea.

This should do the trick. From now on bootstrapping should fail for anyone
who forgets to keep POTFILES.in in sync.

2000-09-12  Philipp Thomas  <pthomas@suse.de>

	* Makefile.in.in (stamp-check-pot): New target used for
	checking POTFILES.
	* gcc.pot: Regenerated.
	* cat-tbl-id.c: Likewise.

Index: Makefile.in.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/po/Makefile.in.in,v
retrieving revision 1.4
diff -u -r1.4 Makefile.in.in
--- Makefile.in.in	2000/06/06 07:23:42	1.4
+++ Makefile.in.in	2000/09/12 02:28:53
@@ -79,9 +79,12 @@
 
 all: all-@USE_NLS@
 
-all-yes: $(CATALOGS) @MAINT@ $(srcdir)/cat-id-tbl.c 
+all-yes: stamp-check-pot $(CATALOGS) @MAINT@ $(srcdir)/cat-id-tbl.c 
 all-no:
 
+stamp-check-pot: $(POTFILES)
+	touch $@
+
 $(srcdir)/$(PACKAGE).pot: $(POTFILES)
 	$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
 	  --add-comments --keyword=_ --keyword=N_ \
@@ -187,7 +190,7 @@
 
 mostlyclean:
 	rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp
-	rm -fr *.o
+	rm -fr *.o stamp-check-pot
 
 clean: mostlyclean
 

-- 
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany

#define NINODE  50              /* number of in core inodes */
#define NPROC   30              /* max number of processes */
 	-- Version 7 UNIX for PDP 11, /usr/include/sys/param.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]