mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 22:06:02 +01:00
Factor out common dependencies
This commit is contained in:
parent
1c1f0d0284
commit
6c86855949
1 changed files with 6 additions and 8 deletions
14
Makefile
14
Makefile
|
@ -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
|
||||||
$(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
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
# 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 $@)
|
||||||
|
|
Loading…
Reference in a new issue