$(DEPS): $(program_C_SRCS) $(program_H_SRCS)
$(CXX) -MM $(program_C_SRCS) $(CPPFLAGS) > $(DEPS)
-# Only include, rebuild make.deps when it's going to be used
-ifeq ($(MAKECMDGOALS),$(DEPS))
include $(DEPS)
-endif
debug: CPPFLAGS += -DCONFIG_DEBUG
debug: all
%.o: %.cc
$(CXX) -fPIC -c $< $(CPPFLAGS)
+PHONY += clean
clean:
rm -f *.o *.so
$(MAKE) -C $(TESTS_DIR) clean
+PHONY += mrclean
mrclean: clean
rm -rf docs
-tags::
+PHONY += tags
+tags:
ctags -R
-tests:: $(LIB_SO)
+PHONY += tests
+tests: $(LIB_SO)
$(MAKE) -C $(TESTS_DIR)
+
+.PHONY: $(PHONY)