mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-26 08:36:00 +01:00
Update Makefile
This commit is contained in:
parent
c1e05c92f4
commit
e96c96f276
3 changed files with 13 additions and 7 deletions
8
Makefile
8
Makefile
|
@ -61,7 +61,7 @@ OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o}) \
|
||||||
${BUILDDIR_GCOV}/${PROJECT}/css-definitions.o \
|
${BUILDDIR_GCOV}/${PROJECT}/css-definitions.o \
|
||||||
${BUILDDIR_GCOV}/${PROJECT}/dbus-interface-definitions.o
|
${BUILDDIR_GCOV}/${PROJECT}/dbus-interface-definitions.o
|
||||||
HEADER = $(wildcard ${PROJECT}/*.h) $(wildcard synctex/*.h)
|
HEADER = $(wildcard ${PROJECT}/*.h) $(wildcard synctex/*.h)
|
||||||
HEADERINST = version.h document.h macros.h page.h types.h plugin-api.h links.h
|
HEADERINST = $(addprefix ${PROJECT}/,version.h document.h macros.h page.h types.h plugin-api.h links.h)
|
||||||
|
|
||||||
all: options ${PROJECT} po build-manpages
|
all: options ${PROJECT} po build-manpages
|
||||||
|
|
||||||
|
@ -171,6 +171,7 @@ gcov: options ${PROJECT}-gcov
|
||||||
clean:
|
clean:
|
||||||
$(QUIET)rm -rf \
|
$(QUIET)rm -rf \
|
||||||
${BUILDDIR} \
|
${BUILDDIR} \
|
||||||
|
${DEPENDDIR} \
|
||||||
${TARFILE} \
|
${TARFILE} \
|
||||||
${TARDIR} \
|
${TARDIR} \
|
||||||
${PROJECT}.pc \
|
${PROJECT}.pc \
|
||||||
|
@ -180,11 +181,8 @@ clean:
|
||||||
${PROJECT}/dbus-interface-definitions.c.tmp \
|
${PROJECT}/dbus-interface-definitions.c.tmp \
|
||||||
${PROJECT}/css-definitions.c \
|
${PROJECT}/css-definitions.c \
|
||||||
${PROJECT}/css-definitions.c.tmp \
|
${PROJECT}/css-definitions.c.tmp \
|
||||||
*gcda \
|
|
||||||
*gcno \
|
|
||||||
$(PROJECT).info \
|
$(PROJECT).info \
|
||||||
gcov \
|
gcov \
|
||||||
*.tmp \
|
|
||||||
.version-checks
|
.version-checks
|
||||||
$(QUIET)$(MAKE) -C tests clean
|
$(QUIET)$(MAKE) -C tests clean
|
||||||
$(QUIET)$(MAKE) -C po clean
|
$(QUIET)$(MAKE) -C po clean
|
||||||
|
@ -260,7 +258,7 @@ install-appdata:
|
||||||
install: all install-headers install-manpages install-dbus install-appdata
|
install: all install-headers install-manpages install-dbus install-appdata
|
||||||
$(call colorecho,INSTALL,"executeable file")
|
$(call colorecho,INSTALL,"executeable file")
|
||||||
$(QUIET)mkdir -m 755 -p ${DESTDIR}${PREFIX}/bin
|
$(QUIET)mkdir -m 755 -p ${DESTDIR}${PREFIX}/bin
|
||||||
$(QUIET)install -m 755 ${PROJECT} ${DESTDIR}${PREFIX}/bin
|
$(QUIET)install -m 755 ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} ${DESTDIR}${PREFIX}/bin
|
||||||
$(QUIET)mkdir -m 755 -p ${DESTDIR}${DESKTOPPREFIX}
|
$(QUIET)mkdir -m 755 -p ${DESTDIR}${DESKTOPPREFIX}
|
||||||
$(call colorecho,INSTALL,"desktop file")
|
$(call colorecho,INSTALL,"desktop file")
|
||||||
$(QUIET)install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX}
|
$(QUIET)install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX}
|
||||||
|
|
2
tests/.gitignore
vendored
2
tests/.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
tests
|
tests
|
||||||
|
tests-gcov
|
||||||
|
tests-debug
|
||||||
|
|
|
@ -14,6 +14,10 @@ OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o})
|
||||||
|
|
||||||
ZATHURA_OBJECTS = \
|
ZATHURA_OBJECTS = \
|
||||||
$(filter-out ../${BUILDDIR_RELEASE}/zathura/main.o, $(wildcard ../${BUILDDIR_RELEASE}/zathura/*.o))
|
$(filter-out ../${BUILDDIR_RELEASE}/zathura/main.o, $(wildcard ../${BUILDDIR_RELEASE}/zathura/*.o))
|
||||||
|
ZATHURA_OBJECTS_DEBUG = \
|
||||||
|
$(filter-out ../${BUILDDIR_DEBUG}/zathura/main.o, $(wildcard ../${BUILDDIR_DEBUG}/zathura/*.o))
|
||||||
|
ZATHURA_OBJECTS_GCOV= \
|
||||||
|
$(filter-out ../${BUILDDIR_GCOV}/zathura/main.o, $(wildcard ../${BUILDDIR_GCOV}/zathura/*.o))
|
||||||
|
|
||||||
ifneq (${WITH_SQLITE},0)
|
ifneq (${WITH_SQLITE},0)
|
||||||
INCS += $(SQLITE_INC)
|
INCS += $(SQLITE_INC)
|
||||||
|
@ -31,11 +35,13 @@ endif
|
||||||
|
|
||||||
ifneq ($(WITH_SYSTEM_SYNCTEX),0)
|
ifneq ($(WITH_SYSTEM_SYNCTEX),0)
|
||||||
else
|
else
|
||||||
ZATHURA_OBJECTS += $(wildcard ../${BUILDDIR_RELEASE}/zathura/synctex/*.o)
|
ZATHURA_OBJECTS += $(wildcard ../${BUILDDIR_RELEASE}/zathura/synctex/*.o)
|
||||||
|
ZATHURA_OBJECTS_DEBUG += $(wildcard ../${BUILDDIR_DEBUG}/zathura/synctex/*.o)
|
||||||
|
ZATHURA_OBJECTS_GCOV += $(wildcard ../${BUILDDIR_GCOV}/zathura/synctex/*.o)
|
||||||
LIBS += $(ZLIB_LIB)
|
LIBS += $(ZLIB_LIB)
|
||||||
|
|
||||||
ifeq (,$(findstring -Isynctex,${CPPFLAGS}))
|
ifeq (,$(findstring -Isynctex,${CPPFLAGS}))
|
||||||
CPPFLAGS += -I${PROJECT}/synctex
|
CPPFLAGS += -I../zathura/synctex
|
||||||
endif
|
endif
|
||||||
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
|
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
|
||||||
CPPFLAGS += -DSYNCTEX_VERBOSE=0
|
CPPFLAGS += -DSYNCTEX_VERBOSE=0
|
||||||
|
|
Loading…
Reference in a new issue