patch-Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- Makefile.orig Fri Jun 29 10:22:48 2001
  2. +++ Makefile Fri Jun 29 10:25:52 2001
  3. @@ -1,33 +1,11 @@
  4. -cmp=/usr/bin/cmp
  5. -cp=/bin/cp
  6. -mv=/bin/mv
  7. -strip=/usr/bin/strip
  8. -ln=/bin/ln
  9. -PREFIX=/usr
  10. +PREFIX?=/usr/local
  11. -all: make_impress make_font3d make_pstoedit
  12. +all: make_impress
  13. -make_font3d:
  14. - (cd font3d;make LDFLAGS=-static)
  15. - @-${strip} font3d/font3d
  16. - @-${cmp} font3d/font3d bin/font3d 2>/dev/null || \
  17. - ${cp} font3d/font3d bin/font3d
  18. -
  19. -make_pstoedit:
  20. - (cd pstoedit/config;./configure)
  21. - (cd pstoedit/src;make LINK="c++ -static")
  22. - @-${strip} pstoedit/src/pstoedit
  23. - @-${cmp} pstoedit/src/pstoedit bin/pstoedit 2>/dev/null || \
  24. - ${cp} pstoedit/src/pstoedit bin/pstoedit
  25. -
  26. make_impress:
  27. - (cd src;make all install)
  28. -
  29. -$(PREFIX)/bin/pstoedit.orig:
  30. - @-mv $(PREFIX)/bin/pstoedit $(PREFIX)/bin/pstoedit.orig
  31. + (cd src;make all)
  32. -install: $(PREFIX)/bin/pstoedit.orig
  33. - install -c bin/impress $(PREFIX)/bin && rm -f $(PREFIX)/bin/impress.tcl && ${ln} -s $(PREFIX)/bin/impress $(PREFIX)/bin/impress.tcl
  34. - install -c bin/transeps $(PREFIX)/bin
  35. - install -c bin/font3d $(PREFIX)/bin
  36. - install -c bin/pstoedit $(PREFIX)/bin
  37. +install:
  38. + install -c -m 755 src/impress $(PREFIX)/bin
  39. + @mkdir $(PREFIX)/share/doc/impress
  40. + @cp src/doc/* $(PREFIX)/share/doc/impress