aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-03-12 14:08:59 +0000
committerbloodstalker <thabogre@gmail.com>2017-03-12 14:08:59 +0000
commit2da323fd8e146da89d8b37722965f4cf3f92d23a (patch)
tree2fa775c2e9d4898c18550de7cbb7950eb0511e79 /makefile
parentadded some macros for the ctags target (diff)
downloadmutator-2da323fd8e146da89d8b37722965f4cf3f92d23a.tar.gz
mutator-2da323fd8e146da89d8b37722965f4cf3f92d23a.zip
added a ctags target
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/makefile b/makefile
index f233ca3..e8f8a85 100644
--- a/makefile
+++ b/makefile
@@ -101,9 +101,9 @@ TARGETS=mutatorserver
######################################RULES####################################
.DEFAULT: all
-.PHONY:all clean install help $(TARGET0) $(TARGET1) $(TARGET2)
+.PHONY:all clean install help $(TARGET0) $(TARGET1) $(TARGET2) TAGS
-all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS)
+all: $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETC) $(TARGETD) $(TARGETS) TAGS
.cpp.o:
$(CXX) $(CXX_FLAGS) -c $< -o $@
@@ -128,6 +128,9 @@ $(TARGETD):
$(TARGETS):
$(MAKE) -C daemon mutatorserver
+TAGS: $(SRCS)
+ $(CTAGS) $(SRCS)
+
clean:
rm -f *.o *~ $(TARGET0) $(TARGET1) $(TARGET2)
$(MAKE) -C tinyxml2 clean
@@ -139,12 +142,14 @@ install:
chmod +x ./extra-tools/ReportPrintPretty.sh
chmod +x ./extra-tools/precommitTests.sh
if [[ ! -d "./temp" ]]; then mkdir temp; fi
+ #@echo 'mutatir home variable not set.'
help:
@echo '- There is help.'
@echo '- All is the default.'
@echo '- install makes the scripts executable. Currently this is all it does.'
@echo '- Clean.'
+ @echo '- TAGS will run ctags on the C/C++ source files.'
@echo '- You can use the target names as build targets to just build one executable.'
@echo '- LLVM_CONF will tell the makefile the name of llvm-config. llvm-config is the default.'
@echo '- CXX will let you set the compiler. currently the only accepted values are clang++ and g++. clang++ is the default.'