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 22f1e4c37f68ec75b4483680ac6ad138d2898c5f..ee19c3c797c785afde0c80cb3b88383b99075681 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)