lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master fd91b93 3/6: Reorder 'clean' targets


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fd91b93 3/6: Reorder 'clean' targets
Date: Wed, 24 Apr 2019 16:47:17 -0400 (EDT)

branch: master
commit fd91b93df3eea6a1a5b02eb6beda345b81a5e8bc
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Reorder 'clean' targets
    
    Brought the 'clean' and 'clobber' recipes closer. They may look quite
    different now, but soon they'll differ less.
---
 GNUmakefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index ac073d6..4efb4ae 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -313,7 +313,7 @@ endef
 
 
################################################################################
 
-# Clean.
+# Clean and its kindred.
 
 # This makefile has rules to build a few files in the source
 # directory, viz.
@@ -331,13 +331,15 @@ expungible_files := $(wildcard *~ *.bak *eraseme*)
 source_clean:
        @-$(RM) --force $(expungible_files)
 
-.PHONY: clean
-clean: source_clean
-       -$(RM) --force --recursive $(build_dir)
+# Simple aliases.
 
 .PHONY: distclean mostlyclean maintainer-clean
 distclean mostlyclean maintainer-clean: clean
 
+.PHONY: clean
+clean: source_clean
+       -$(RM) --force --recursive $(build_dir)
+
 .PHONY: clobber
 clobber: source_clean
        -$(RM) --force --recursive $(srcdir)/../build



reply via email to

[Prev in Thread] Current Thread [Next in Thread]