mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
From 5e4fb1832b5abc15db55e8e814646116dd189c89 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
|
Date: Tue, 20 Aug 2024 15:04:53 +0200
|
|
Subject: Makefile: make install paths configurable
|
|
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 13443a0..d9b07a7 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -42,7 +42,9 @@ UNAME_S := $(shell uname -s)
|
|
|
|
# Installation directory
|
|
#
|
|
-DESTDIR = /usr/local/bin
|
|
+PREFIX = /usr/local
|
|
+BINDIR = ${PREFIX}/bin
|
|
+MANDIR = ${PREFIX}/share/man
|
|
|
|
# Specify you favorite compiler
|
|
#
|
|
@@ -125,16 +127,16 @@ man-page:
|
|
# If you want detex available as delatex, uncomment the last two lines of
|
|
# this target
|
|
install: all
|
|
- rm -f ${DESTDIR}/detex
|
|
- install -c -m 775 -g staff -s detex ${DESTDIR}
|
|
- install detex.1 /usr/local/share/man/man1
|
|
-# rm -f ${DESTDIR}/delatex
|
|
-# ln ${DESTDIR}/detex ${DESTDIR}/delatex
|
|
+ rm -f ${BINDIR}/detex
|
|
+ install -c -m 755 -s detex ${BINDIR}
|
|
+ install detex.1 ${MANDIR}/man1
|
|
+# rm -f ${BINDIR}/delatex
|
|
+# ln -s detex ${BINDIR}/delatex
|
|
|
|
uninstall:
|
|
- rm -f ${DESTDIR}/detex
|
|
- rm -f ${DESTDIR}/delatex
|
|
- rm -f /usr/local/share/man/man1/detex.*
|
|
+ rm -f ${BINDIR}/detex
|
|
+ rm -f ${BINDIR}/delatex
|
|
+ rm -f ${MANDIR}/man1/detex.*
|
|
|
|
clean:
|
|
-rm -f a.out core *.s *.o ERRS errs .,* .emacs_[0-9]*
|
|
--
|
|
2.45.2
|
|
|