Commit 6c868559 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Factor out common dependencies

parent 1c1f0d02
...@@ -68,6 +68,8 @@ options: ...@@ -68,6 +68,8 @@ options:
@echo "DFLAGS = ${DFLAGS}" @echo "DFLAGS = ${DFLAGS}"
@echo "CC = ${CC}" @echo "CC = ${CC}"
# generated files
${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk ${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk
$(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \ $(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \
-e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \ -e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \
...@@ -90,11 +92,13 @@ ${PROJECT}/css-definitions.c: data/zathura.css_t ...@@ -90,11 +92,13 @@ ${PROJECT}/css-definitions.c: data/zathura.css_t
$(QUIET)echo ';' >> $@.tmp $(QUIET)echo ';' >> $@.tmp
$(QUIET)mv $@.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 .version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
# rlease build
${BUILDDIR_RELEASE}/%.o: %.c ${BUILDDIR_RELEASE}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@) @mkdir -p ${DEPENDDIR}/$(dir $@)
...@@ -116,9 +120,6 @@ run: release ...@@ -116,9 +120,6 @@ run: release
# debug build # debug build
${OBJECTS_DEBUG}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_DEBUG}/%.o: %.c ${BUILDDIR_DEBUG}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@) @mkdir -p ${DEPENDDIR}/$(dir $@)
...@@ -139,9 +140,6 @@ run-debug: debug ...@@ -139,9 +140,6 @@ run-debug: debug
# gcov build # gcov build
${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_GCOV}/%.o: %.c ${BUILDDIR_GCOV}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@) @mkdir -p ${DEPENDDIR}/$(dir $@)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment