From 20d7662ef6607bac0266e227820257eef34f4baf Mon Sep 17 00:00:00 2001 From: Tom Kazimiers Date: Sun, 12 Jul 2020 23:14:30 +0200 Subject: [PATCH] Use a better installation default target ~/texmf seems to be more commonly recommended. --- Makefile | 3 +++ README.md | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 96a89af..f3b117c 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,9 @@ else # macOS prefix := $(prefix)/Library/texmf endif + ifeq ($(detected_OS),Linux) + prefix := $(prefix)/texmf + endif endif texdir = $(prefix)/tex/inputs docdir = $(texdir)/doc diff --git a/README.md b/README.md index 0b15ece..5f747dd 100644 --- a/README.md +++ b/README.md @@ -33,5 +33,7 @@ Die installation kann entweder durch das Kommando `make install && make install. * Zuerst rechnung.sty erzeugen: `latex rechnung.ins` * Dann die Dokumentation: `latex rechnung.dtx` -* rechnung.sty muss in den Pfad von LaTeX 2e `.../tex/latex/`, wobei „`...`“ systemspezifisch ist. +* rechnung.sty muss in den Pfad von LaTeX 2e `.../tex/latex/`, wobei „`...`“ + systemspezifisch ist. In den meisten Linux-Distributionen ist `~/texmf` der + typische Ort, sodass der gesamte Pfad `~/texmf/tex/latex/` wäre.