2001-10-08 Geert Bosch <bosch@gnat.com>
authorbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2001 23:46:22 +0000 (23:46 +0000)
committerbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2001 23:46:22 +0000 (23:46 +0000)
* Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
Automatically build utilities when files need to be regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46110 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/Makefile.in

index d41bb6d..914c8b1 100644 (file)
@@ -1,5 +1,10 @@
 2001-10-08  Geert Bosch  <bosch@gnat.com>
 
+       * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
+       Automatically build utilities when files need to be regenerated.
+
+2001-10-08  Geert Bosch  <bosch@gnat.com>
+
        * xsnames.adb: New utility for updating snames.ads and snames.adb
 
 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
index 85c67ed..ce6b91f 100644 (file)
@@ -2416,20 +2416,30 @@ b_gnatdll.c : $(GNATDLL_OBJS)
        $(GNATBIND) $(ADA_INCLUDES) -o b_gnatdll.c gnatdll.ali
 b_gnatdll.o : b_gnatdll.c
 
-$(srcdir)/treeprs.ads : treeprs.adt sinfo.ads xtreeprs.spt
-       (cd $(srcdir); xtreeprs)
-
-$(srcdir)/einfo.h : einfo.ads einfo.adb xeinfo.spt
-       (cd $(srcdir); xeinfo einfo.h)
-
-$(srcdir)/sinfo.h : sinfo.ads xsinfo.spt
-       (cd $(srcdir); xsinfo sinfo.h)
-
-$(srcdir)/nmake.adb : nmake.adt sinfo.ads xnmake.spt
-       (cd $(srcdir); xnmake)
-
-$(srcdir)/nmake.ads :  nmake.adt sinfo.ads xnmake.spt
-       (cd $(srcdir); xnmake)
+treeprs.ads : treeprs.adt sinfo.ads xtreeprs.adb
+       -$(MKDIR) bldtools
+       $(CP) $^ bldtools
+       (cd bldtools; gnatmake -q xtreeprs ; ./xtreeprs ../treeprs.ads )
+
+einfo.h : einfo.ads einfo.adb xeinfo.adb
+       -$(MKDIR) bldtools
+       $(CP) $^ bldtools
+       (cd bldtools; gnatmake -q xeinfo ; ./xeinfo ../einfo.h )
+
+sinfo.h : sinfo.ads xsinfo.adb
+       -$(MKDIR) bldtools
+       $(CP) $^ bldtools
+       (cd bldtools; gnatmake -q xsinfo ; ./xsinfo ../sinfo.h )
+
+nmake.adb : sinfo.ads nmake.adt xnmake.adb
+       -$(MKDIR) bldtools
+       $(CP) $^ bldtools
+       (cd bldtools; gnatmake -q xnmake ; ./xnmake -b ../nmake.adb )
+
+nmake.ads :  sinfo.ads nmake.adt xnmake.adb
+       -$(MKDIR) bldtools
+       $(CP) $^ bldtools
+       (cd bldtools; gnatmake -q xnmake ; ./xnmake -s ../nmake.ads )
 
 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib