Ticket #65405: patch-Makefile

File patch-Makefile, 609 bytes (added by mbrethen, 2 years ago)

patch Makefile to use ${prefix} instead of hardcoded path

Line 
1--- Makefile.orig       2022-06-26 13:24:49.000000000 -0500
2+++ Makefile    2022-06-26 13:26:33.000000000 -0500
3@@ -13,15 +13,15 @@
4 # These are good for regular use.
5 #CFLAGS += -O2 -fomit-frame-pointer -falign-functions=2 -falign-loops=2 -falign-jumps=2
6 # These are handy for debugging.
7-CFLAGS += -g
8+#CFLAGS += -g
9 
10 # Define where you want Frotz installed
11-PREFIX ?= /usr/local
12+PREFIX ?= @PREFIX@
13 MANDIR ?= $(MAN_PREFIX)/man
14 BINDIR ?= $(PREFIX)/bin
15 #BINDIR ?= $(PREFIX)/games
16 MAN_PREFIX ?= $(PREFIX)/share
17-SYSCONFDIR ?= /etc
18+SYSCONFDIR ?= $(PREFIX)/etc
19 
20 # Choose your sound support
21 # OPTIONS: ao, none