build: Skip generating .version files when cleaning
authorDiego Biurrun <diego@biurrun.de>
Tue, 28 Feb 2017 21:12:00 +0000 (22:12 +0100)
committerJames Almer <jamrial@gmail.com>
Sun, 10 Sep 2017 04:22:57 +0000 (01:22 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
ffbuild/library.mak

index 22f1e4c..ee19c3c 100644 (file)
@@ -1,6 +1,8 @@
 include $(SRC_PATH)/ffbuild/common.mak
 
+ifeq (,$(filter %clean,$(MAKECMDGOALS)))
 -include $(SUBDIR)lib$(NAME).version
+endif
 
 LIBVERSION := $(lib$(NAME)_VERSION)
 LIBMAJOR   := $(lib$(NAME)_VERSION_MAJOR)