[AD] make install makes examples

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


Attached is a patch which fixes a bug in the Makefile, where "make
install" would create all the examples (so it took forever).

-- 
Elias Pschernig
Index: makefile.in
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.in,v
retrieving revision 1.68
diff -u -r1.68 makefile.in
--- makefile.in	16 Oct 2004 21:05:33 -0000	1.68
+++ makefile.in	30 Oct 2004 17:45:44 -0000
@@ -525,13 +525,13 @@
 	  $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/allegro/platform/; \
 	done
 
-install-programs: programs
+INSTALL_EXES = $(filter tools/%, $(ALLEGRO_LIB_EXES) $(ALLEGRO_DATAFILE_EXES))
+
+install-programs: $(INSTALL_EXES)
 	$(mkinstalldirs) $(DESTDIR)$(bindir)
-	@for prog in $(ALLEGRO_LIB_EXES) $(ALLEGRO_DATAFILE_EXES); do \
-	  if test "X`echo $$prog | sed -e s,tools/.\*,,`" = X; then \
+	@for prog in $^; do \
 	    echo Installing $$prog to $(DESTDIR)$(bindir); \
 	    $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(bindir); \
-	  fi; \
 	done
 
 install-info: docs


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