Well, there are two choices.

1) create a makefile rule for creating each alias file.  I think this
   is not as easily maintainable, but is probably the more proper
   "make" solution in a strict sense.

2) create a temp file that acts as a "have done it" flag.  This is
   what the patch below does and it's trivial and prevents a double
   make unless "make clean" or the makefile is touched.

3) ?

I'm leaning slightly toward 2, and thus my patch:

Index: Makefile.in
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/man/Makefile.in,v
retrieving revision 5.31
diff -u -p -r5.31 Makefile.in
--- Makefile.in 16 Nov 2006 21:38:53 -0000      5.31
+++ Makefile.in 22 Nov 2006 06:15:56 -0000
@@ -81,11 +81,12 @@ MANALIASES=$(DEFAULT_STORE_ALIASES) $(RE
 MANALL = $(MAN1) $(MAN1G) $(MAN3) $(MAN3G) $(MAN5G) $(MAN8G) $(MANALIASES)

 TARGETS = $(MAN5G) $(MAN1G) $(MAN3G) $(MAN8G)
-OTHERCLEANTARGETS=$(TARGETS) default_store.3.h $(MANALIASES)
+OTHERCLEANTARGETS=$(TARGETS) default_store.3.h $(MANALIASES) manaliases

 all: $(TARGETS) standardall manaliases

-manaliases:
+manaliases: Makefile
+       touch manaliases
        @for i in $(DEFAULT_STORE_ALIASES) ; do                         \
                echo "making man page alias $$i -> default_store APIs" ; \
                echo ".so man3/default_store.3" > $$i ;                 \


-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to