mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Use clean_local' instead of clean' and `realclean_local' instead
Estimated hours taken: 0.75 Mmakefile: */Mmakefile: */*/Mmakefile: */*/*/Mmakefile: Use `clean_local' instead of `clean' and `realclean_local' instead of `realclean' where appropriate. This is necessary now that `realclean' does not depend on `clean'.
This commit is contained in:
@@ -453,7 +453,10 @@ clean_subdirs:
|
||||
(cd $$dir; $(SUBDIR_MMAKE) clean) \
|
||||
done
|
||||
|
||||
realclean: realclean_subdirs realclean_config
|
||||
realclean: realclean_subdirs realclean_local
|
||||
|
||||
.PHONY: realclean_local
|
||||
realclean_local: realclean_config
|
||||
|
||||
.PHONY: realclean_subdirs
|
||||
realclean_subdirs: clean_subdirs
|
||||
|
||||
@@ -118,7 +118,7 @@ bindist.build_vars: bindist.build_vars.in
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f bindist.configure bindist.build_vars
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -37,7 +37,7 @@ submake: force
|
||||
.PHONY: force
|
||||
force:
|
||||
|
||||
clean:
|
||||
clean_local:
|
||||
MAKEFLAGS=""; export MAKEFLAGS; \
|
||||
$(MAKE) $(MMAKEFLAGS) clean
|
||||
rm -f libgc.a libgc.so
|
||||
|
||||
@@ -156,7 +156,7 @@ $(os_subdir)browser_library.pic_o \
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f lib$(BROWSER_LIB_NAME).a lib$(BROWSER_LIB_NAME).so \
|
||||
$(BROWSER_LIB_NAME).init
|
||||
rm -f tags
|
||||
|
||||
@@ -107,10 +107,10 @@ uninstall:
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f *.o *.pic_o
|
||||
|
||||
realclean: clean
|
||||
realclean_local:
|
||||
-$(RM) mbi mdis depend.mk* libmbi.a libmbi.so \
|
||||
mdb mdb.c mdb.d mdb_init.c
|
||||
|
||||
|
||||
@@ -177,14 +177,14 @@ cs: $(mercury_compile.cs) $(cs_subdir)mercury_compile_init.c
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
clean:
|
||||
clean_local:
|
||||
for file in *.pp; do \
|
||||
if [ "$$file" != "*.pp" ]; then \
|
||||
rm -f `basename $$file .pp`.m; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f tags mercury_compile.stats $(PP_DATE_FILES)
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#-----------------------------------------------------------------------------#
|
||||
# Copyright (C) 1996-1997 The University of Melbourne.
|
||||
# Copyright (C) 1996-1997, 1999 The University of Melbourne.
|
||||
# This file may only be copied under the terms of the GNU General
|
||||
# Public License - see the file COPYING in the Mercury distribution.
|
||||
#-----------------------------------------------------------------------------#
|
||||
@@ -46,7 +46,7 @@ install: $(DOCS_ALL)
|
||||
[ -d $(INSTALL_WEB_SUBDIR) ] || mkdir -p $(INSTALL_WEB_SUBDIR)
|
||||
cp $(DOCS_ALL) $(INSTALL_WEB_SUBDIR)
|
||||
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f $(DOCS_TEXT)
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -274,7 +274,7 @@ install_webpage: library-chapters.texi split_html ps install_dirs
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
clean: distclean clean_texi
|
||||
clean_local: distclean clean_texi
|
||||
|
||||
.PHONY: distclean
|
||||
distclean:
|
||||
@@ -284,7 +284,7 @@ distclean:
|
||||
clean_texi:
|
||||
rm -f library-menu.texi library-chapters.texi
|
||||
|
||||
realclean: realclean_texi realclean_manpages
|
||||
realclean_local: realclean_texi realclean_manpages
|
||||
|
||||
.PHONY: realclean_texi
|
||||
realclean_texi:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#-----------------------------------------------------------------------------#
|
||||
# Copyright (C) 1998 The University of Melbourne.
|
||||
# Copyright (C) 1998-1999 The University of Melbourne.
|
||||
# This file may only be copied under the terms of the GNU Library General
|
||||
# Public License - see the file COPYING.LIB in the Mercury distribution.
|
||||
#-----------------------------------------------------------------------------#
|
||||
@@ -30,8 +30,7 @@ depend: $(DEPENDS)
|
||||
.PHONY: all
|
||||
all: aditi.o
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f *.out *.res
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -56,8 +56,8 @@ check: $(RESS)
|
||||
.PHONY: cs
|
||||
cs: $(CS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
.PHONY: clean_local
|
||||
clean_local:
|
||||
rm -f *.out *.res
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -56,8 +56,8 @@ check: $(RESS)
|
||||
.PHONY: cs
|
||||
cs: $(CS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
.PHONY: clean_local
|
||||
clean_local:
|
||||
rm -f *.out *.res
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -70,8 +70,8 @@ check: vqueens.res
|
||||
.PHONY: cs
|
||||
cs: $(CS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
.PHONY: clean_local
|
||||
clean_local:
|
||||
rm -f *.out *.res
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -60,8 +60,8 @@ check: $(RESS)
|
||||
.PHONY: cs
|
||||
cs: $(CS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
.PHONY: clean_local
|
||||
clean_local:
|
||||
rm -f *.out *.res
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -214,7 +214,7 @@ $(os_subdir)std_util.pic_o \
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f lib$(STD_LIB_NAME).a lib$(STD_LIB_NAME).so $(STD_LIB_NAME).init
|
||||
rm -f tags
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ cs: $(mercury_profile.cs) $(cs_subdir)mercury_profile_init.c
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f tags
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -305,7 +305,7 @@ RM_C=:
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
clean: clean_o clean_check
|
||||
clean_local: clean_o clean_check
|
||||
|
||||
.PHONY: clean_o
|
||||
clean_o:
|
||||
@@ -315,7 +315,7 @@ clean_o:
|
||||
clean_check:
|
||||
rm -f $(HDR_CHECK_OBJS) $(HDR_CHECK_CS) $(HDR_CHECK_MACROS)
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f lib$(RT_LIB_NAME).a lib$(RT_LIB_NAME).so $(RT_LIB_NAME).init
|
||||
rm -f mercury_conf.h mercury_conf.h.date
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ c_main.o: mercury_lib.h
|
||||
mercury_lib.h: mercury_lib.o
|
||||
|
||||
# make sure that `mmake clean' removes c_main.o
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f c_main.o mercury_lib.h
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -51,7 +51,7 @@ cpp_main_int.o: cpp_main.h
|
||||
mercury_lib.h: mercury_lib.o
|
||||
|
||||
# make sure that `mmake clean' removes cpp_main.o and mercury_lib.h
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f cpp_main.o mercury_lib.h
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -14,5 +14,5 @@ MLLIBS=c_main.o
|
||||
mercury_main: c_main.o
|
||||
|
||||
# make sure that `mmake clean' removes c_main.o
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f c_main.o
|
||||
|
||||
@@ -35,7 +35,7 @@ MLLIBS=cpp_main.o
|
||||
mercury_main: cpp_main.o
|
||||
|
||||
# make sure that `mmake clean' removes cpp_main.o
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f cpp_main.o
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -27,5 +27,5 @@ MLLIBS=fortran_main.o -lf2c
|
||||
mercury_main: fortran_main.o
|
||||
|
||||
# make sure that `mmake clean' removes fortran_main.o
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f fortran_main.o
|
||||
|
||||
@@ -33,10 +33,10 @@ c_main.o: mercury_lib.h
|
||||
mercury_lib.h: mercury_lib.o
|
||||
|
||||
# make sure that `mmake clean' removes c_main.o
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f c_main.o mercury_lib.h
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f c_main
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -52,10 +52,10 @@ cpp_main.o: mercury_lib.h
|
||||
mercury_lib.h: mercury_lib.o
|
||||
|
||||
# make sure that `mmake clean' removes c_main.o
|
||||
clean:
|
||||
clean_local:
|
||||
rm -f cpp_main.o mercury_lib.h
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f cpp_main
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -90,7 +90,7 @@ uninstall:
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
realclean: clean_scripts
|
||||
realclean_local: clean_scripts
|
||||
|
||||
.PHONY: clean_scripts
|
||||
clean_scripts:
|
||||
|
||||
@@ -172,13 +172,13 @@ RM_C=:
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
clean: clean_o
|
||||
clean_local: clean_o
|
||||
|
||||
.PHONY: clean_o
|
||||
clean_o:
|
||||
rm -f $(OBJS) $(PIC_OBJS)
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
rm -f lib$(TRACE_LIB_NAME).a lib$(TRACE_LIB_NAME).so
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -43,7 +43,7 @@ uninstall:
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
realclean:
|
||||
realclean_local:
|
||||
-rm -f $(PROGS)
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
Reference in New Issue
Block a user