]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Clean up maintMakefile
authorPaul Smith <psmith@gnu.org>
Sat, 10 Sep 2022 22:27:37 +0000 (18:27 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 10 Sep 2022 22:35:41 +0000 (18:35 -0400)
Notes provided by Tzvetelin Katchov <katchov@gnu.org>

* maintMakefile (git-very-clean): Add -x to git clean.
(GNULIBDIR): Use GNULIB_SRCDIR, or the local module if not set.

maintMakefile

index 99d649b6a2e95f28a677a1394128e87ec10aed91..83eab90f4597cdfdcd38a4c06cb1e9d5d658455d 100644 (file)
@@ -17,9 +17,6 @@ GPG_KEYID := 80CB727A20C79BB2
 # SRCROOTDIR is just a handy location to keep source files in
 SRCROOTDIR ?= $(HOME)/src
 
-# Where the gnulib project has been locally cloned
-GNULIBDIR ?= $(SRCROOTDIR)/gnulib
-
 # Where to put the CVS checkout of the GNU web repository
 GNUWEBDIR ?= $(SRCROOTDIR)/gnu-www
 
@@ -118,13 +115,16 @@ GIT :=    git
 git-clean:
        -$(GIT) clean -fdX
 git-very-clean: git-clean
-       -$(GIT) clean -fd
+       -$(GIT) clean -fdx
 
 
 ## ---------------------- ##
 ## Generating ChangeLog.  ##
 ## ---------------------- ##
 
+# Where the gnulib project has been locally cloned
+GNULIBDIR ?= $(or $(wildcard $(GNULIB_SRCDIR)),./gnulib)
+
 gl2cl-date := 2013-10-10
 gl2cl := $(GNULIBDIR)/build-aux/gitlog-to-changelog