--- Makefile.orig 2023-11-19 06:10:00 UTC +++ Makefile @@ -1,4 +1,4 @@ -CFLAGS = -g -Wall $(OFLAGS) $(XFLAGS) -Isrc +CFLAGS = -Wall $(OFLAGS) $(XFLAGS) -Isrc OFLAGS = -O3 -DNDEBUG #OFLAGS = -pg @@ -14,10 +14,10 @@ leg : leg.o $(OBJS) $(CC) $(CFLAGS) -o $@-new leg.o $(OBJS) mv $@-new $@ -ROOT = -PREFIX = /usr/local +ROOT = %%STAGEDIR%% +PREFIX = %%PREFIX%% BINDIR = $(ROOT)$(PREFIX)/bin -MANDIR = $(ROOT)$(PREFIX)/man/man1 +MANDIR = $(ROOT)$(PREFIX)/share/man/man1 install : $(BINDIR) $(BINDIR)/peg $(BINDIR)/leg $(MANDIR) $(MANDIR)/peg.1