Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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@gmail.com>
  • Loading branch information
geneC committed Sep 27, 2015
1 parent 804efa7 commit a8cb6df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 11 additions & 1 deletion Makefile
Expand Up @@ -95,6 +95,7 @@ ifeq ($(real-target),)
endif

ifeq ($(real-firmware),)
do-spotless-gpxe = no-fw
real-firmware = $(firmware)
endif

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)

#
Expand Down
4 changes: 1 addition & 3 deletions gpxe/Makefile
Expand Up @@ -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:
Expand Down

0 comments on commit a8cb6df

Please sign in to comment.