From 6c86855949cea0d309170fcceeca0e19f3aecca8 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 24 Jan 2017 22:03:58 +0100 Subject: [PATCH] Factor out common dependencies --- Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f1f9880..046a750 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,8 @@ options: @echo "DFLAGS = ${DFLAGS}" @echo "CC = ${CC}" +# generated files + ${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk $(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \ -e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \ @@ -90,11 +92,13 @@ ${PROJECT}/css-definitions.c: data/zathura.css_t $(QUIET)echo ';' >> $@.tmp $(QUIET)mv $@.tmp $@ -# release build +# common dependencies -${OBJECTS}: config.mk ${PROJECT}/version.h \ +${OBJECTS} ${OBJECTS_DEBUG} ${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \ .version-checks/GIRARA .version-checks/GLIB .version-checks/GTK +# rlease build + ${BUILDDIR_RELEASE}/%.o: %.c $(call colorecho,CC,$<) @mkdir -p ${DEPENDDIR}/$(dir $@) @@ -116,9 +120,6 @@ run: release # debug build -${OBJECTS_DEBUG}: config.mk ${PROJECT}/version.h \ - .version-checks/GIRARA .version-checks/GLIB .version-checks/GTK - ${BUILDDIR_DEBUG}/%.o: %.c $(call colorecho,CC,$<) @mkdir -p ${DEPENDDIR}/$(dir $@) @@ -139,9 +140,6 @@ run-debug: debug # gcov build -${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \ - .version-checks/GIRARA .version-checks/GLIB .version-checks/GTK - ${BUILDDIR_GCOV}/%.o: %.c $(call colorecho,CC,$<) @mkdir -p ${DEPENDDIR}/$(dir $@)