Skip to content

Commit

Permalink
Makefile: clean and tags target for the root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 13, 2016
1 parent 15fe29f commit d82ab50
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ SMODPARAM=modules=$(smodules)
endif
endif

MKTAGS?=ctags

# forward all named targets
%:
$(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
Expand All @@ -32,3 +34,16 @@ default:
.PHONY: install
install:
$(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)

.PHONY: TAGS
.PHONY: tags
TAGS tags:
$(MKTAGS) --exclude="misc/*" --exclude="test/*" -R .

# clean everything generated - shortcut on maintainer-clean
.PHONY: pure
clean pure distclean:
@rm -f .*.swp tags TAGS
$(MAKE) -C $(KSR_DIR) $@

#

0 comments on commit d82ab50

Please sign in to comment.