wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/doc/man Makefile.am


From: Isaac Clerencia
Subject: [Wesnoth-cvs-commits] wesnoth/doc/man Makefile.am
Date: Sat, 09 Apr 2005 10:41:23 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Isaac Clerencia <address@hidden>        05/04/09 14:41:23

Modified files:
        doc/man        : Makefile.am 

Log message:
        Handle manpages "manually" in doc/man/Makefile.am
        I can't think of a way to only install the ./configured manpages when 
doing
        make install but have every page in the make dist using the standard 
*_MANS
        variables, so I've did it manually, it seems to works correctly

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/doc/man/Makefile.am.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: wesnoth/doc/man/Makefile.am
diff -u wesnoth/doc/man/Makefile.am:1.4 wesnoth/doc/man/Makefile.am:1.5
--- wesnoth/doc/man/Makefile.am:1.4     Thu Mar  3 22:19:58 2005
+++ wesnoth/doc/man/Makefile.am Sat Apr  9 14:41:23 2005
@@ -1,41 +1,53 @@
 MAN_LANG = de
-dist_man6_MANS =
+MAN_PAGES = wesnoth.6 wesnothd.6 wesnoth_editor.6
+INSTALL_MAN_PAGES =
 
 if GAME
-dist_man6_MANS += wesnoth.6
+INSTALL_MAN_PAGES += wesnoth.6
 endif
 
 if SERVER
-dist_man6_MANS += wesnothd.6
+INSTALL_MAN_PAGES += wesnothd.6
 endif
 
 if EDITOR
-dist_man6_MANS += wesnoth_editor.6
+INSTALL_MAN_PAGES += wesnoth_editor.6
 endif
 
 install-data-hook:
+       mkdir -p $(DESTDIR)$(mandir)/man6 ; \
+       for j in $(INSTALL_MAN_PAGES); do \
+               $(INSTALL) -c -m 644 $(srcdir)/$$j $(DESTDIR)$(mandir)/man6/$$j 
; \
+       done
        for i in $(MAN_LANG); do \
                mkdir -p $(DESTDIR)$(mandir)/$$i/man6 ; \
-               for j in $(dist_man6_MANS); do \
+               for j in $(INSTALL_MAN_PAGES); do \
                        $(INSTALL) -c -m 644 $(srcdir)/$$i/$$j 
$(DESTDIR)$(mandir)/$$i/man6/$$j ; \
                done \
        done
 
 uninstall-hook:
        for i in $(MAN_LANG); do \
-               for j in $(dist_man6_MANS); do \
+               for j in $(INSTALL_MAN_PAGES); do \
                        rm -f $(DESTDIR)$(mandir)/$$i/man6/$$j ; \
                done ; \
                if test -d $(DESTDIR)$(mandir)/$$i/man6 ; then echo `rmdir 
$(DESTDIR)$(mandir)/$$i/man6` ; fi ; \
                if test -d $(DESTDIR)$(mandir)/$$i ; then echo `rmdir 
$(DESTDIR)$(mandir)/$$i` ; fi ; \
        done
+       for j in $(INSTALL_MAN_PAGES); do \
+               rm -f $(DESTDIR)$(mandir)/man6/$$j ; \
+       done
        if test -d $(DESTDIR)$(mandir)/man6 ; then echo `rmdir 
$(DESTDIR)$(mandir)/man6` ; fi
        if test -d $(DESTDIR)$(mandir) ; then echo `rmdir $(DESTDIR)$(mandir)` 
; fi
 
 dist-hook:
+       mkdir -p $(distdir)/ ; \
+       for j in $(MAN_PAGES); do \
+               $(INSTALL) -c -m 644 $(srcdir)/$$j $(distdir)/$$j ; \
+       done
        for i in $(MAN_LANG); do \
                mkdir -p $(distdir)/$$i ; \
-               for j in $(dist_man6_MANS); do \
+               for j in $(MAN_PAGES); do \
                        $(INSTALL) -c -m 644 $(srcdir)/$$i/$$j 
$(distdir)/$$i/$$j ; \
                done \
        done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]