]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Store the man page in $(mandir)/man1
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 23 Dec 2010 19:13:50 +0000 (19:13 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 23 Dec 2010 19:13:50 +0000 (19:13 +0000)
The manpage was stored one directory level too high.

Thanks to kodemi for reporting this.

Makefile.in

index e4f636f34337800e646d31ed1fc58dd66831c1ba..805cf44cdc092e27ccadd9577ba1020993dbf2cd 100644 (file)
@@ -9,6 +9,7 @@ docdir      = @docdir@
 CC          = @CC@
 BINDIR      = @bindir@
 MANDIR      = @mandir@
+MAN1DIR     = $(MANDIR)/man1
 SYSCONFDIR  = @sysconfdir@
 SARGPHPDIR  = @SARGPHPDIR@
 FONTDIR     = @FONTDIR@
@@ -77,9 +78,9 @@ install: all install-po
                echo "creating $(DESTDIR)$(BINDIR)"; \
                mkdir -p $(DESTDIR)$(BINDIR); \
        fi
-       -@if test ! -d $(DESTDIR)$(MANDIR); then \
-               echo "creating $(DESTDIR)$(MANDIR)"; \
-               mkdir -p $(DESTDIR)$(MANDIR); \
+       -@if test ! -d $(DESTDIR)$(MAN1DIR); then \
+               echo "creating $(DESTDIR)$(MAN1DIR)"; \
+               mkdir -p $(DESTDIR)$(MAN1DIR); \
        fi
        -@if test ! -d $(DESTDIR)$(SYSCONFDIR); then \
                echo "creating $(DESTDIR)$(SYSCONFDIR)"; \
@@ -91,8 +92,8 @@ install: all install-po
        fi
        $(INSTALL_PROGRAM) sarg $(DESTDIR)$(BINDIR)/sarg
        chmod 755 $(DESTDIR)$(BINDIR)/sarg
-       $(INSTALL_PROGRAM) sarg.1 $(DESTDIR)$(MANDIR)/sarg.1
-       chmod 755 $(DESTDIR)$(MANDIR)/sarg.1
+       $(INSTALL_PROGRAM) sarg.1 $(DESTDIR)$(MAN1DIR)/sarg.1
+       chmod 755 $(DESTDIR)$(MAN1DIR)/sarg.1
        @if test ! -f $(DESTDIR)$(SYSCONFDIR)/sarg.conf; then \
                echo "cp $(DESTDIR)$(SYSCONFDIR)/sarg.conf"; \
                cp sarg.conf $(DESTDIR)$(SYSCONFDIR)/sarg.conf; \
@@ -116,7 +117,7 @@ install: all install-po
 
 uninstall: uninstall-po
        rm -f $(DESTDIR)$(BINDIR)/sarg
-       rm -f $(DESTDIR)$(MANDIR)/sarg.1
+       rm -f $(DESTDIR)$(MAN1DIR)/sarg.1
 
 TAGS: $(SRCS)
        etags $(SRCS)