From 4fcab8ff56fad193688745b8068ced4280e62277 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 23 Nov 2019 09:33:22 +0900 Subject: [PATCH] Fix rebuilding of onedrive, but ensure version is properly updated (#731) * Fix rebuilding of onedrive, but ensure version is properly updated --- Makefile.in | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile.in b/Makefile.in index 8f5548ad..152869f7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -95,7 +95,12 @@ distclean: clean rm -f Makefile contrib/pacman/PKGBUILD contrib/spec/onedrive.spec onedrive.1 \ $(system_unit_files) $(user_unit_files) -onedrive: version $(SOURCES) +onedrive: $(SOURCES) + if [ -f .git/HEAD ] ; then \ + git describe --tags > version ; \ + else \ + echo $(version) > version ; \ + fi $(DC) $(DCFLAGS) $(addprefix -L,$(curl_LIBS)) $(addprefix -L,$(sqlite_LIBS)) $(addprefix -L,$(notify_LIBS)) -L-ldl $(SOURCES) -of$@ install: all @@ -148,10 +153,4 @@ ifeq ($(COMPLETIONS),yes) rm -f $(DESTDIR)$(BASH_COMPLETION_DIR)/onedrive endif -version: - if [ -f .git/HEAD ] ; then \ - git describe --tags > version ; \ - else \ - echo $(version) > version ; \ - fi