patch-Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $OpenBSD: patch-Makefile,v 1.1.1.1 2015/11/14 19:38:55 jung Exp $
  2. --- Makefile.orig Wed Nov 11 23:46:24 2015
  3. +++ Makefile Fri Nov 13 22:09:56 2015
  4. @@ -18,14 +18,12 @@ config.h:
  5. cp config.def.h config.h
  6. .c.o:
  7. - @echo CC $<
  8. - @${CC} -c ${CFLAGS} $<
  9. + ${CC} -c ${CFLAGS} $<
  10. ${OBJ}: config.h config.mk
  11. sent: ${OBJ}
  12. - @echo CC -o $@
  13. - @${CC} -o $@ ${OBJ} ${LDFLAGS}
  14. + ${CC} -o $@ ${OBJ} ${LDFLAGS}
  15. cscope: ${SRC} config.h
  16. @echo cScope
  17. @@ -44,10 +42,10 @@ dist: clean
  18. @rm -rf sent-${VERSION}
  19. install: all
  20. - @echo installing executable file to ${DESTDIR}${PREFIX}/bin
  21. - @mkdir -p ${DESTDIR}${PREFIX}/bin
  22. - @cp -f sent ${DESTDIR}${PREFIX}/bin
  23. - @chmod 755 ${DESTDIR}${PREFIX}/bin/sent
  24. + ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
  25. + ${BSD_INSTALL_PROGRAM} sent ${DESTDIR}${PREFIX}/bin
  26. + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/sent
  27. + ${BSD_INSTALL_DATA} example nyan.png ${DESTDIR}${PREFIX}/share/examples/sent
  28. uninstall:
  29. @echo removing executable file from ${DESTDIR}${PREFIX}/bin