diff --git a/Makefile b/Makefile
index cbe15f5..bfaa5bd 100644
a
|
b
|
CPPFLAGS += "-DVERSION_MAJOR=${VERSION_MAJOR}" |
18 | 18 | CPPFLAGS += "-DVERSION_MINOR=${VERSION_MINOR}" |
19 | 19 | CPPFLAGS += "-DVERSION_REV=${VERSION_REV}" |
20 | 20 | |
21 | | all: options ${PLUGIN}.so |
| 21 | all: options ${PLUGIN}.dylib |
22 | 22 | |
23 | 23 | zathura-version-check: |
24 | 24 | ifneq ($(ZATHURA_VERSION_CHECK), 0) |
… |
… |
options: |
47 | 47 | ${OBJECTS}: config.mk zathura-version-check |
48 | 48 | ${DOBJECTS}: config.mk zathura-version-check |
49 | 49 | |
50 | | ${PLUGIN}.so: ${OBJECTS} |
| 50 | ${PLUGIN}.dylib: ${OBJECTS} |
51 | 51 | $(ECHO) LD $@ |
52 | | $(QUIET)${CC} -shared ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS} |
| 52 | $(QUIET)${CC} -Wl,-dylib_install_name,${PLUGIN}.dylib -Wl,-bundle_loader,${PREFIX}/bin/zathura -bundle ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS} |
53 | 53 | |
54 | | ${PLUGIN}-debug.so: ${DOBJECTS} |
| 54 | ${PLUGIN}-debug.dylib: ${DOBJECTS} |
55 | 55 | $(ECHO) LD $@ |
56 | 56 | $(QUIET)${CC} -shared ${LDFLAGS} -o $@ ${DOBJECTS} ${LIBS} |
57 | 57 | |
58 | 58 | clean: |
59 | | $(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).so $(PLUGIN)-debug.so \ |
| 59 | $(QUIET)rm -rf ${OBJECTS} ${DOBJECTS} $(PLUGIN).dylib $(PLUGIN)-debug.dylib \ |
60 | 60 | doc .depend ${PROJECT}-${VERSION}.tar.gz zathura-version-check |
61 | 61 | |
62 | | debug: options ${PLUGIN}-debug.so |
| 62 | debug: options ${PLUGIN}-debug.dylib |
63 | 63 | |
64 | 64 | dist: clean |
65 | 65 | $(QUIET)mkdir -p ${PROJECT}-${VERSION} |
… |
… |
doc: clean |
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} |
… |
… |
install: all |
87 | 87 | |
88 | 88 | uninstall: |
89 | 89 | $(ECHO) uninstalling ${PLUGIN} plugin |
90 | | $(QUIET)rm -f ${DESTDIR}${PLUGINDIR}/${PLUGIN}.so |
91 | | $(QUIET)rmdir --ignore-fail-on-non-empty ${DESTDIR}${PLUGINDIR} 2> /dev/null |
| 90 | $(QUIET)rm -f ${DESTDIR}${PLUGINDIR}/${PLUGIN}.dylib |
| 91 | $(QUIET)rmdir ${DESTDIR}${PLUGINDIR} 2> /dev/null |
92 | 92 | $(ECHO) removing desktop file |
93 | 93 | $(QUIET)rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop |
94 | | $(QUIET)rmdir --ignore-fail-on-non-empty ${DESTDIR}${DESKTOPPREFIX} 2> /dev/null |
| 94 | $(QUIET)rmdir ${DESTDIR}${DESKTOPPREFIX} 2> /dev/null |
95 | 95 | $(ECHO) removing AppData file |
96 | 96 | $(QUIET)rm -f $(DESTDIR)$(APPDATAPREFIX)/$(PROJECT).metainfo.xml |
97 | 97 | |