===================================================================
@@ -6486,6 +6486,14 @@
Make_Failed ("-i and -D cannot be used simultaneously");
end if;
+ -- Warn about 'gnatmake -P'
+
+ if Project_File_Name /= null then
+ Write_Line
+ ("warning: gnatmake -P is obsolete and will not be available " &
+ "in the next release. Use gprbuild instead.");
+ end if;
+
-- If --subdirs= is specified, but not -P, this is equivalent to -D,
-- except that the directory is created if it does not exist.
===================================================================
@@ -1383,6 +1383,14 @@
if Project_File_Name /= null then
+ -- Warn about 'gnatclean -P'
+
+ if Project_File_Name /= null then
+ Put_Line
+ ("warning: gnatclean -P is obsolete and will not be available " &
+ "in the next release. Use gprclean instead.");
+ end if;
+
-- A project file was specified by a -P switch
if Opt.Verbose_Mode then