patch-Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. - explicitly use the host cc to compile c2sh and c2tmac
  2. (using per-target local variable assignments is an elegant
  3. way for not having to define explicit rules for the targets)
  4. - dont try setting owner and group of installed files
  5. --- aufs2-util-130809.orig/Makefile 2009-08-13 14:59:49.000000000 +0200
  6. +++ aufs2-util-130809/Makefile 2009-08-23 18:05:03.909726416 +0200
  7. @@ -54,6 +54,11 @@ ${Dummy}: ${LibSoObj}
  8. ${LibSo}: ${Dummy}
  9. ln -f $< $@
  10. +c2sh c2tmac: CC = ${HOSTCC}
  11. +c2sh c2tmac: CFLAGS="-I${KDIR}/include"
  12. +c2sh c2tmac: LDFLAGS=
  13. +c2sh c2tmac: CPPFLAGS=
  14. +
  15. etc_default_aufs: c2sh aufs.shlib
  16. ${RM} $@
  17. echo '# aufs variables for shell scripts' > $@
  18. @@ -86,12 +91,12 @@ install_ulib: File = ${LibSo}
  19. install_ulib: Tgt = ${DESTDIR}/ulib
  20. install_sbin install_ubin install_man install_ulib: ${File}
  21. install -d ${Tgt}
  22. - install -m 755 -o root -g root -p ${Opt} ${File} ${Tgt}
  23. + install -m 755 -p ${Opt} ${File} ${Tgt}
  24. install_etc: File = etc_default_aufs
  25. install_etc: Tgt = ${DESTDIR}/etc/default/aufs
  26. install_etc: ${File}
  27. install -d $(dir ${Tgt})
  28. - install -m 644 -o root -g root -p -T ${File} ${Tgt}
  29. + install -m 644 -p -T ${File} ${Tgt}
  30. # do not inlcude install_ulib here
  31. install: install_man install_sbin install_ubin install_etc