ChangeLog
authorJeff Hobbs <hobbs@users.sourceforge.net>
Sun, 23 Feb 2003 23:19:17 +0000 (23:19 +0000)
committerJeff Hobbs <hobbs@users.sourceforge.net>
Sun, 23 Feb 2003 23:19:17 +0000 (23:19 +0000)
Makefile.in

index 65bb41c110208543a4f78b921090832e8b79bd0a..7f2036c88a915ea1748a80b490b2674f7e75866f 100644 (file)
@@ -172,9 +172,11 @@ binaries: $(BINARIES)
 
 libraries:
        @mkdir -p $(top_builddir)/library/
-       @list='$(RUNTIME_SOURCES)'; for p in $$list; do \
-            $(INSTALL_DATA) $(srcdir)/library/$$p $(top_builddir)/library/$$p;\
-       done
+       @if test "$(srcdir)" != "$(top_builddir)"; then \
+           list='$(RUNTIME_SOURCES)'; for p in $$list; do \
+                $(INSTALL_DATA) $(srcdir)/library/$$p $(top_builddir)/library/$$p;\
+           done; \
+       fi
 
 doc:
 
@@ -264,9 +266,11 @@ clean:
        -test -z "$(BINARIES)" || rm -f $(BINARIES)
        -rm -f *.$(OBJEXT) core *.core
        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-       list='$(RUNTIME_SOURCES)'; for p in $$list; do \
-            rm -f library/$$p; \
-       done
+       if test "$(srcdir)" != "$(top_builddir)"; then \
+           list='$(RUNTIME_SOURCES)'; for p in $$list; do \
+               rm -f library/$$p; \
+           done; \
+       fi
 
 distclean: clean
        -rm -f *.tab.c