build: don't require GLUON_TARGET for dirclean

This commit is contained in:
Matthias Schiffer 2015-03-14 22:23:42 +01:00
parent 4d7d3d05b3
commit 6f1594666d

View File

@ -72,7 +72,7 @@ all: prepare-target
prepare: prepare-target prepare: prepare-target
+@$(GLUONMAKE) $@ +@$(GLUONMAKE) $@
clean dirclean download images: FORCE clean download images: FORCE
@$(CheckExternal) @$(CheckExternal)
@$(CheckTarget) @$(CheckTarget)
+@$(GLUONMAKE_EARLY) maybe-prepare-target +@$(GLUONMAKE_EARLY) maybe-prepare-target
@ -102,6 +102,12 @@ manifest: FORCE
( [ ! -e $(BOARD_BUILDDIR)/prepared ] || ( $(GLUONMAKE) manifest GLUON_TARGET='$(GLUON_TARGET)' ) ) && \ ( [ ! -e $(BOARD_BUILDDIR)/prepared ] || ( $(GLUONMAKE) manifest GLUON_TARGET='$(GLUON_TARGET)' ) ) && \
) :) ) :)
dirclean : FORCE
@for dir in build_dir dl staging_dir tmp; do \
rm -rf $(GLUON_ORIGOPENWRTDIR)/$$dir; \
done
@rm -rf $(GLUON_BUILDDIR) $(GLUON_IMAGEDIR)
else else
TOPDIR=${CURDIR} TOPDIR=${CURDIR}
@ -236,12 +242,6 @@ clean: FORCE
+$(SUBMAKE) clean +$(SUBMAKE) clean
rm -f $(gluon_prepared_stamp) rm -f $(gluon_prepared_stamp)
dirclean: FORCE
for dir in build_dir dl staging_dir tmp; do \
rm -rf $(GLUON_ORIGOPENWRTDIR)/$$dir; \
done
rm -rf $(GLUON_BUILDDIR)
export MD5SUM := $(GLUONDIR)/scripts/md5sum.sh export MD5SUM := $(GLUONDIR)/scripts/md5sum.sh
export SHA512SUM := $(GLUONDIR)/scripts/sha512sum.sh export SHA512SUM := $(GLUONDIR)/scripts/sha512sum.sh