patch-GNUmakefile 856 B

12345678910111213141516171819202122232425262728
  1. --- avl-0.3.5.orig/GNUmakefile 2002-11-15 19:57:48.000000000 +0100
  2. +++ avl-0.3.5/GNUmakefile 2011-05-10 13:52:58.000000000 +0200
  3. @@ -15,7 +15,7 @@ CFLAGS ?= -O2 -fomit-frame-pointer -pipe
  4. #CFLAGS = -g -pg -a -pipe -march=i686 -Wall
  5. #LDFLAGS = -s
  6. -prefix ?= /usr/local
  7. +prefix ?= /usr
  8. libdir ?= $(prefix)/lib
  9. includedir ?= $(prefix)/include
  10. includedir ?= /usr/include
  11. @@ -41,13 +41,13 @@ clean:
  12. install: all
  13. $(INSTALL) -d $(DESTDIR)$(libdir)
  14. + $(INSTALL) -d $(DESTDIR)$(includedir)
  15. $(INSTALL) avl.h $(DESTDIR)$(includedir)
  16. - $(INSTALL) $(LIBRARIES) $(DESTDIR)$(libdir)
  17. - for i in $(LIBRARIES); do\
  18. + $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)
  19. + for i in $(LIBRARY); do\
  20. $(LN) -sf $$i $(DESTDIR)$(libdir)/$${i%.*};\
  21. $(LN) -sf $${i%.*} $(DESTDIR)$(libdir)/$${i%.*.*};\
  22. done
  23. - -$(LDCONFIG)
  24. .PHONY: clean install all
  25. .PRECIOUS: %.h %.c