[syslinux:master] Add gpxe/ to clean-up targets

syslinux-bot for Gene Cumm gene.cumm at gmail.com
Sun Sep 27 11:12:02 PDT 2015


Commit-ID:  a8cb6dfc231f4ed1fe97fd49800b984738a26ffd
Gitweb:     http://www.syslinux.org/commit/a8cb6dfc231f4ed1fe97fd49800b984738a26ffd
Author:     Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Sun, 27 Sep 2015 14:08:59 -0400
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 27 Sep 2015 14:08:59 -0400

Add gpxe/ to clean-up targets

gpxe/ has a lot of binary blobs after a spotless.  Start the cleanup
measures.  do-spotless-gpxe for bios target might be better in another
spot.

Signed-off-by: Gene Cumm <gene.cumm at gmail.com>

---
 Makefile      | 12 +++++++++++-
 gpxe/Makefile |  4 +---
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index fb387c5..615ccc4 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,7 @@ ifeq ($(real-target),)
 endif
 
 ifeq ($(real-firmware),)
+	do-spotless-gpxe = no-fw
 	real-firmware = $(firmware)
 endif
 
@@ -346,6 +347,8 @@ install: local-install
 	set -e ; for i in $(INSTALLSUBDIRS) ; \
 		do $(MAKE) -C $$i SRC="$(SRC)/$$i" OBJ="$(OBJ)/$$i" \
 		-f $(SRC)/$$i/Makefile $@; done
+
+do-spotless-gpxe = bios
 else
 install:
 	mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)/efi$(BITS)
@@ -406,7 +409,14 @@ local-spotless:
 		-type f -print0 \
 	| xargs -0rt rm -f
 
-spotless: local-spotless
+ifeq ($(do-spotless-gpxe),)
+spotless-gpxe:
+else
+spotless-gpxe:
+	$(MAKE) -C "$(topdir)/gpxe" SRC="$(topdir)/gpxe" spotless
+endif
+
+spotless: local-spotless spotless-gpxe
 	rm -rf $(all_firmware)
 
 #
diff --git a/gpxe/Makefile b/gpxe/Makefile
index d2f5e75..73ee261 100644
--- a/gpxe/Makefile
+++ b/gpxe/Makefile
@@ -31,9 +31,7 @@ clean: tidy
 dist:
 	$(MAKE) -C $(SRC)/src veryclean > /dev/null 2>&1
 
-#spotless: clean dist
-#Including 'dist' errors out for make ARCH=x86_64 spotless
-spotless: clean
+spotless: clean dist
 	rm -f $(TARGETS)
 
 installer:


More information about the Syslinux-commits mailing list