Browse code

Makefile: clean and tags target for the root folder

Daniel-Constantin Mierla authored on 13/12/2016 11:48:07
Showing 1 changed files
... ...
@@ -20,6 +20,8 @@ SMODPARAM=modules=$(smodules)
20 20
 endif
21 21
 endif
22 22
 
23
+MKTAGS?=ctags
24
+
23 25
 # forward all named targets
24 26
 %:
25 27
 	$(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
... ...
@@ -32,3 +34,16 @@ default:
32 34
 .PHONY: install
33 35
 install:
34 36
 	$(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
37
+
38
+.PHONY: TAGS
39
+.PHONY: tags
40
+TAGS tags:
41
+	$(MKTAGS) --exclude="misc/*" --exclude="test/*" -R .
42
+
43
+# clean everything generated - shortcut on maintainer-clean
44
+.PHONY: pure
45
+clean pure distclean:
46
+	@rm -f .*.swp tags TAGS
47
+	$(MAKE) -C $(KSR_DIR) $@
48
+
49
+#