1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #1539 from LudwigOrtmann/distclean

make: [dist]clean
This commit is contained in:
Ludwig Ortmann 2014-10-10 07:18:04 -07:00
commit 920f49c268
3 changed files with 15 additions and 3 deletions

View File

@ -12,6 +12,14 @@ doc:
docclean:
"$(MAKE)" -BC doc/doxygen clean
clean:
@echo "Cleaning all build products for the current board"
@find ./pkg/ ./examples/ ./tests/ -maxdepth 2 -mindepth 2 -type f -name Makefile -execdir "${MAKE}" clean ';'
distclean: docclean
@echo "Cleaning all build products"
@find ./pkg/ ./examples/ ./tests/ -maxdepth 2 -mindepth 2 -type f -name Makefile -execdir "${MAKE}" distclean ';'
welcome:
@echo "Welcome to RIOT - The friendly OS for IoT!"
@echo ""

View File

@ -174,8 +174,12 @@ $(USEPKG:%=${BINDIR}%.a):
"$(MAKE)" -C $(RIOTBASE)/pkg/$(patsubst ${BINDIR}%.a,%,$@)
clean:
@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTBASE)/pkg/$$i clean || exit 1; done
rm -rf $(BINDIR) $(CLEANFILES)
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTBASE)/pkg/$$i clean ; done
-@rm -rf $(BINDIR)
distclean:
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTBASE)/pkg/$$i distclean ; done
-@rm -rf $(BINDIRBASE)
flash: all
$(FLASHER) $(FFLAGS)

View File

@ -2,4 +2,4 @@ doc:
doxygen riot.doxyfile
clean:
@rm -rf latex man html
-@rm -rf latex man html