--- Makefile_orig 2026-04-04 19:53:49 +++ Makefile 2026-04-04 19:55:21 @@ -38,7 +38,7 @@ DEFS = -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\" -DPACKAGE_LOCALE_DIR=\"$(localedir)\" -DPACKAGE_DOC_DIR=\"$(docdir)\" -TARGETS = gpscorrelate-gui$(EXEEXT) gpscorrelate$(EXEEXT) doc/gpscorrelate.1 doc/gpscorrelate.html +TARGETS = gpscorrelate-gui$(EXEEXT) gpscorrelate$(EXEEXT) all: $(TARGETS) @@ -61,7 +61,7 @@ (cd tests && ./testsuite $(CHECK_OPTIONS)) clean: - rm -f *.o gpscorrelate$(EXEEXT) gpscorrelate-gui$(EXEEXT) doc/gpscorrelate-manpage.xml tests/log/* io.github.dfandrich.gpscorrelate.metainfo.xml $(TARGETS) + rm -f *.o gpscorrelate$(EXEEXT) gpscorrelate-gui$(EXEEXT) tests/log/* io.github.dfandrich.gpscorrelate.metainfo.xml $(TARGETS) distclean: clean clean-po rm -f AUTHORS @@ -69,31 +69,14 @@ install: all install -d $(DESTDIR)$(bindir) install -m 0755 gpscorrelate$(EXEEXT) gpscorrelate-gui$(EXEEXT) $(DESTDIR)$(bindir) - install -d $(DESTDIR)$(mandir)/man1 - install -m 0644 doc/gpscorrelate.1 $(DESTDIR)$(mandir)/man1 - install -d $(DESTDIR)$(docdir) - install -p -m 0644 doc/*.html doc/*.png README.md $(DESTDIR)$(docdir) - install -m 0644 gpscorrelate-gui.svg $(DESTDIR)$(docdir) - install -d $(DESTDIR)$(docdir)/fr - install -p -m 0644 doc/fr/*.html doc/fr/*.png $(DESTDIR)$(docdir)/fr install-desktop-file: desktop-file-install --vendor="" --dir="$(DESTDIR)$(applicationsdir)" gpscorrelate.desktop install -d $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps install -p -m 0644 gpscorrelate-gui.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/gpscorrelate-gui.svg -docs: doc/gpscorrelate.1 doc/gpscorrelate.html -# BSD make doesn't work with $< as the prerequisite in the following rules but $? is fine -doc/gpscorrelate-manpage.xml: doc/gpscorrelate-manpage.xml.in - sed -e 's,@DOCDIR@,$(docdir),g' -e 's,@PACKAGE_VERSION@,$(PACKAGE_VERSION),g' $? > $@ -doc/gpscorrelate.1: doc/gpscorrelate-manpage.xml - xsltproc $(XSLTFLAGS) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $? - -doc/gpscorrelate.html: doc/gpscorrelate-manpage.xml - xsltproc $(XSLTFLAGS) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $? - # This is intended to be used only by the maintainer io.github.dfandrich.gpscorrelate.metainfo.xml: io.github.dfandrich.gpscorrelate.metainfo.xml.in intltool-merge -x po $< $@ @@ -129,3 +112,4 @@ -rm gpscorrelate-$(PACKAGE_VERSION).tar.gz gzip -9 gpscorrelate-$(PACKAGE_VERSION).tar rm -r gpscorrelate-$(PACKAGE_VERSION) +