Ticket #19042: Makefile.patch
File Makefile.patch, 1.6 KB (added by cr@…, 16 years ago) |
---|
-
Makefile
old new 29 29 30 30 # Change this if you want to install into another dirtree 31 31 # Required for eg the Debian Package builder 32 DESTDIR=33 32 export DESTDIR 34 33 35 34 # This may be updated by RPM's for instance 36 35 CFLAGS=${RPM_OPT_FLAGS} 37 36 38 37 # Destination Paths (relative to DESTDIR) 39 dirsbin=/ usr/sbin/40 dirbin=/ usr/bin/41 diretc=/etc/ 42 dirdoc=/ usr/share/doc/${PROJECT}/38 dirsbin=/sbin/ 39 dirbin=/bin/ 40 diretc=/etc/ 41 dirdoc=/share/doc/${PROJECT}/ 43 42 44 43 # Make sure the lower makefile also knows these 45 44 export PROJECT … … 78 77 @mkdir -p ${DESTDIR}${dirdoc} 79 78 @echo "Configuration..." 80 79 @mkdir -p ${DESTDIR}${diretc} 81 ifeq ($(shell echo "A${RPM_BUILD_ROOT}"),A) 82 $(shell [ -f ${DESTDIR}${diretc}${PROJECT}.conf ] || cp -R doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf) 80 @cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf_example 83 81 @echo "Documentation..." 84 82 @cp doc/README ${DESTDIR}${dirdoc} 85 83 @cp doc/LICENSE ${DESTDIR}${dirdoc} 86 84 @cp doc/HOWTO ${DESTDIR}${dirdoc} 87 @echo "Installing Debian-style init.d" 88 @mkdir -p ${DESTDIR}${diretc}init.d 89 @cp doc/${PROJECT}.init.debian ${DESTDIR}${diretc}init.d/${PROJECT} 90 else 91 @echo "Installing Redhat-style init.d" 92 @mkdir -p ${DESTDIR}${diretc}init.d 93 @cp doc/${PROJECT}.init.rpm ${DESTDIR}${diretc}init.d/${PROJECT} 94 @cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf 95 endif 85 @mkdir -p ${DESTDIR}/share/man/man1 86 @cp doc/${PROJECT}.1 ${DESTDIR}/share/man/man1/ 96 87 @echo "Installation into ${DESTDIR}/ completed" 97 88 98 89 help: