patch-Makefile_in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. - set ${CC} only if unset
  2. - drop -Werror, sources aren't that sane ;)
  3. - don't chown the files when installing
  4. - use DESTDIR when installing
  5. - don't strip binaries (we do ourself, install chooses the wrong strip binary)
  6. - create non-existing target directories
  7. --- totd-1.5.orig/Makefile.in 2005-01-31 12:55:14.000000000 +0100
  8. +++ totd-1.5/Makefile.in 2010-03-25 21:21:05.085663745 +0100
  9. @@ -4,7 +4,7 @@
  10. # <$Id: Makefile.in,v 3.43 2005/01/31 11:55:14 dillema Exp $>
  11. #
  12. -CC = gcc
  13. +CC ?= gcc
  14. # These use the standard autoconf variables, which by default are
  15. # rooted in @prefix@
  16. @@ -19,7 +19,7 @@ TOT_CONFIG_FILE=@sysconfdir@/totd.conf
  17. INSTALL = /usr/bin/install
  18. -CFLAGS = @CFLAGS@ @DEFS@ -Werror -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
  19. +CFLAGS = @CFLAGS@ @DEFS@ -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
  20. # When debugging is enabled by --enable-malloc-debug flag to the configure
  21. # script, the @DBMALLOC@ substitution will contain the empty string, thus
  22. @@ -66,8 +66,10 @@ libswill.a:
  23. -ranlib libswill.a
  24. install: $(PROG)
  25. - $(INSTALL) -c -s -m 0555 -o bin -g bin $(PROG) $(INSTALLDIR)
  26. - $(INSTALL) -c -m 0444 -o root -g wheel $(MAN) $(INSTALLMAN)/man8
  27. + mkdir -p ${DESTDIR}/${INSTALLDIR}
  28. + $(INSTALL) -c -m 0555 $(PROG) ${DESTDIR}/$(INSTALLDIR)
  29. + mkdir -p ${DESTDIR}/${INSTALLMAN}/man8
  30. + $(INSTALL) -c -m 0444 $(MAN) ${DESTDIR}/$(INSTALLMAN)/man8
  31. lint:
  32. lint ${SRCS}