Ticket #47868: patch-Makefile.diff
File patch-Makefile.diff, 2.0 KB (added by harciga, 9 years ago) |
---|
-
Makefile
old new 20 20 CPPFLAGS += "-DVERSION_MINOR=${VERSION_MINOR}" 21 21 CPPFLAGS += "-DVERSION_REV=${VERSION_REV}" 22 22 23 all: options ${PLUGIN}. so23 all: options ${PLUGIN}.dylib 24 24 25 25 zathura-version-check: 26 26 ifneq ($(ZATHURA_VERSION_CHECK), 0) … … 48 48 ${OBJECTS}: config.mk zathura-version-check 49 49 ${DOBJECTS}: config.mk zathura-version-check 50 50 51 ${PLUGIN}. so: ${OBJECTS}51 ${PLUGIN}.dylib: ${OBJECTS} 52 52 $(ECHO) LD $@ 53 $(QUIET)${CC} - shared ${LDFLAGS} -o $@ $(OBJECTS)${LIBS}53 $(QUIET)${CC} -Wl,-dylib_install_name,${DESTDIR}${PLUGINDIR}/${PLUGIN}.dylib -Wl,-bundle_loader,${PREFIX}/bin/zathura -bundle ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS} 54 54 55 55 ${PLUGIN}-debug.so: ${DOBJECTS} 56 56 $(ECHO) LD $@ 57 57 $(QUIET)${CC} -shared ${LDFLAGS} -o $@ $(DOBJECTS) ${LIBS} 58 58 59 59 clean: 60 $(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN). so$(PLUGIN)-debug.so \60 $(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).dylib $(PLUGIN)-debug.so \ 61 61 doc .depend ${PROJECT}-${VERSION}.tar.gz zathura-version-check 62 62 63 63 debug: options ${PLUGIN}-debug.so … … 77 77 install: all 78 78 $(ECHO) installing ${PLUGIN} plugin 79 79 $(QUIET)mkdir -p ${DESTDIR}${PLUGINDIR} 80 $(QUIET)cp -f ${PLUGIN}. so${DESTDIR}${PLUGINDIR}80 $(QUIET)cp -f ${PLUGIN}.dylib ${DESTDIR}${PLUGINDIR} 81 81 $(QUIET)mkdir -m 755 -p ${DESTDIR}${DESKTOPPREFIX} 82 82 $(ECHO) installing desktop file 83 83 $(QUIET)install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX} … … 85 85 86 86 uninstall: 87 87 $(ECHO) uninstalling ${PLUGIN} plugin 88 $(QUIET)rm -f ${DESTDIR}${PLUGINDIR}/${PLUGIN}. so89 $(QUIET)rmdir --ignore-fail-on-non-empty${DESTDIR}${PLUGINDIR} 2> /dev/null88 $(QUIET)rm -f ${DESTDIR}${PLUGINDIR}/${PLUGIN}.dylib 89 $(QUIET)rmdir ${DESTDIR}${PLUGINDIR} 2> /dev/null 90 90 $(ECHO) removing desktop file 91 91 $(QUIET)rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop 92 $(QUIET)rmdir --ignore-fail-on-non-empty${DESTDIR}${DESKTOPPREFIX} 2> /dev/null92 $(QUIET)rmdir ${DESTDIR}${DESKTOPPREFIX} 2> /dev/null 93 93 94 94 -include $(wildcard .depend/*.dep) 95 95