Make it build outside source tree
[openafs.git] / src / opr / Makefile.in
index 9827b6e..4a60726 100644 (file)
@@ -23,16 +23,16 @@ $(TOP_LIBDIR)/libopr.a: libopr.a
 $(TOP_INCDIR)/afs/opr.h: opr.h
        $(INSTALL_DATA) $? $@
 
-$(TOP_INCDIR)/afs/opr_assert.h: opr_assert.h
+$(TOP_INCDIR)/afs/opr_assert.h: ${srcdir}/opr_assert.h
        $(INSTALL_DATA) $? $@
 
-$(TOP_INCDIR)/opr/jhash.h: jhash.h
+$(TOP_INCDIR)/opr/jhash.h: ${srcdir}/jhash.h
        $(INSTALL_DATA) $? $@
 
-$(TOP_INCDIR)/opr/queue.h: queue.h
+$(TOP_INCDIR)/opr/queue.h: ${srcdir}/queue.h
        $(INSTALL_DATA) $? $@
 
-$(TOP_INCDIR)/opr/rbtree.h: rbtree.h
+$(TOP_INCDIR)/opr/rbtree.h: ${srcdir}/rbtree.h
        $(INSTALL_DATA) $? $@
 
 clean:
@@ -41,12 +41,12 @@ clean:
 install: libopr.a
        $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
        $(INSTALL) -d $(DESTDIR)$(includedir)/opr
-       $(INSTALL_DATA) queue.h $(DESTDIR)$(includedir)/opr/queue.h
+       $(INSTALL_DATA) ${srcdir}/queue.h $(DESTDIR)$(includedir)/opr/queue.h
 
 dest: libopr.a
        $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
        $(INSTALL) -d $(DEST)/include/opr
-       $(INSTALL_DATA) queue.h $(DEST)/include/opr/queue.h
+       $(INSTALL_DATA) ${srcdir}/queue.h $(DEST)/include/opr/queue.h
 
 
 buildtools: $(HEADERS) $(TOP_LIBDIR)/libopr.a