ports/misc/trurl/files/patch-Makefile
Juraj Lutter e099cfe34b misc/trurl: Update to 0.15
- Update to 0.15
- To avoid build dependency on hs-pandoc, add pre-rendered
  manual page (trurl.1) as the manual page is now in markdown
  format upstream.
2024-08-28 12:22:39 +02:00

28 lines
598 B
Text

--- Makefile.orig 2024-08-28 08:21:22 UTC
+++ Makefile
@@ -33,7 +33,7 @@ endif
ifndef NDEBUG
CFLAGS += -Werror -g
endif
-MANUAL = trurl.1
+MANUAL = trurl.md
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
@@ -47,10 +47,14 @@ trurl.o: trurl.c version.h
trurl.o: trurl.c version.h
-.PHONY: install
-install:
+.PHONY: install install-bin install-man
+install: install-bin install-man
+
+install-bin:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)
+
+install-man:
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 0644 $(MANUAL) $(DESTDIR)$(MANDIR)