From 66da789f8dfa5e42ff4aa5d1ca4dab93ed0beb4f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 2 Jul 1996 21:57:31 +0000 Subject: * rpm/template (%build): Use @prefix@ instead of always /usr. Set up configparms only if @prefix@ is in fact /usr. * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@. --- rpm/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpm/Makefile') diff --git a/rpm/Makefile b/rpm/Makefile index 148a3a19d6..22544506f6 100644 --- a/rpm/Makefile +++ b/rpm/Makefile @@ -64,7 +64,9 @@ instvars = include lib bin sbin data others # Generate the rpm spec file for this configuration. $(config): template $(distinfo) Makefile rm -f $@.new - (sed -e 's%@VERSION@%$(version)%g' $<; \ + (sed -e 's%@VERSION@%$(version)%g' \ + -e 's%@prefix@%$(prefix)%g' \ + $<; \ ($(foreach var,$(instvars),\ list='$(install-$(var))'; \ for f in $$list; do \ -- cgit v1.2.1