[AD] makefile targets fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I finally realized what had often caused strange and unexplainable bugs
while working on the allegro code - there was a missing dependency for
the install-lib target. So with enabled modules, it would not update the
modules.

The patch fixes this, and also adds two targets to the docs, which are
quite useful, at least when modifying allegro's code.

-- 
Elias Pschernig <elias@xxxxxxxxxx>
Index: makefile.in
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.in,v
retrieving revision 1.58
diff -u -p -r1.58 makefile.in
--- makefile.in	9 Apr 2004 10:37:43 -0000	1.58
+++ makefile.in	24 Apr 2004 10:37:41 -0000
@@ -448,7 +448,7 @@ full-install: install-headers install-pr
 	@echo "and/or make install-gzipped-info.  Or install-bzipped-man,"
 	@echo "install-bzipped-info to use bzip2 instead of gzip."
 
-install-lib: lib
+install-lib: lib modules
 	$(mkinstalldirs) $(DESTDIR)$(libdir)
 	@for l in alleg alld allp; do \
 	  if test -f $(LIBDIR)/lib$${l}.a; then \
Index: docs/src/allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/allegro._tx,v
retrieving revision 1.219
diff -u -p -r1.219 allegro._tx
--- docs/src/allegro._tx	9 Apr 2004 11:47:35 -0000	1.219
+++ docs/src/allegro._tx	24 Apr 2004 10:38:01 -0000
@@ -10123,12 +10123,22 @@ makefiles also provide some special pseu
    Compiles the current library version (one of optimised, debugging, or 
    profiling, selected by the above environment variables).
 <li>
+   'modules' (Unix only)<br>
+   This will compile all the modules currently configured. The 'lib' and
+   'modules' targets together are needed to build a working copy of the Allegro
+   library, without examples or support programs.
+<li>
    'install'<br>
    Copies the current library version (one of optimised, debugging, or 
    profiling, selected by the above environment variables), into your 
    compiler lib directory, recompiling it as required, and installs the 
    Allegro headers.
 <li>
+   'install-lib' (Unix only)<br>
+   You can use this to only install the libraries and modules, but not
+   documentation and utility programs, which get installed with the 'install'
+   target.
+<li>
    'installall' (non-Unix only)<br>
    Copies all three library versions (optimised, debugging, and profiling), 
    into your compiler lib directory, recompiling them as required, and 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/