]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update man pages on install to have correct paths
authorMatthew Newton <mcn4@leicester.ac.uk>
Sat, 9 Apr 2016 20:52:53 +0000 (21:52 +0100)
committerMatthew Newton <mcn4@leicester.ac.uk>
Sat, 9 Apr 2016 21:23:33 +0000 (22:23 +0100)
Makefile

index 219e55d4335a6baebc2c4817b49cc625f3064e9b..5749199944f0a348ab5c1f50d007330b4ae893f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,11 @@ install.man: $(subst man/,$(R)$(mandir)/,$(MANFILES))
 
 $(R)$(mandir)/%: man/%
        @echo INSTALL $(notdir $<)
-       @$(INSTALL) -m 644 $< $@
+       @sed -e "s,/etc/raddb,$(raddbdir),g" \
+               -e "s,/usr/local/share,$(datarootdir),g" \
+               $< > $<.subst
+       @$(INSTALL) -m 644 $<.subst $@
+       @rm $<.subst
 
 #
 #  Don't install rlm_test