Patch from Tobias Blaser <tblaser@freesurf.ch>:

Here is a patch to CVS which adds the DESTDIR variable to the installation
rules in the comedilib doc Makefile. Convenient when creating packages.
This commit is contained in:
Frank Mori Hess 2007-08-19 18:39:03 +00:00
parent 1081d0ff02
commit d2708571d4
2 changed files with 9 additions and 8 deletions

View file

@ -1,6 +1,7 @@
# People who have contributed code/documentation to comedilib (alphabetized by last name)
Ian Abbott <abbotti@mev.co.uk>
Terry Barnaby <terry1@beam.ltd.uk>
Tobias Blaser <tblaser@freesurf.ch>
Anders Blomdell <anders.blomdell@control.lth.se>
Herman Bruyninckx
John Conner <conner@empiredi.com>

View file

@ -46,25 +46,25 @@ doc_html: $(SGML)
{ $(DOCBOOK2HTML) -o doc_html $(srcdir)/comedilib.sgml && touch doc_html; } || { $(RM) -r doc_html; exit 1; }
install_html:
$(mkdir_p) $(htmldir)/html
chmod u+w $(htmldir)/html
$(mkdir_p) $(DESTDIR)$(htmldir)/html
chmod u+w $(DESTDIR)$(htmldir)/html
for each in $(srcdir)/doc_html/*.html $(srcdir)/*.gif ; do \
$(INSTALL_DATA) $$each $(htmldir)/html ; done
$(INSTALL_DATA) $$each $(DESTDIR)$(htmldir)/html ; done
uninstall_html:
for each in $(srcdir)/doc_html/*.html $(srcdir)/*.gif ; do \
$(RM) $(htmldir)/html/`basename $$each` ; done
$(RM) $(DESTDIR)$(htmldir)/html/`basename $$each` ; done
man: $(SGML)
{ $(DOCBOOK2MAN) -o man $(srcdir)/comedilib.sgml && touch man; } || { $(RM) -r man; exit 1; }
install_man:
$(mkdir_p) -m 755 $(mandir)/man3
chmod u+w $(mandir)/man3
for each in $(srcdir)/man/*.3 ; do $(INSTALL_DATA) $$each $(mandir)/man3 ; done
$(mkdir_p) -m 755 $(DESTDIR)$(mandir)/man3
chmod u+w $(DESTDIR)$(mandir)/man3
for each in $(srcdir)/man/*.3 ; do $(INSTALL_DATA) $$each $(DESTDIR)$(mandir)/man3 ; done
uninstall_man:
for each in $(srcdir)/man/*.3 ; do $(RM) $(mandir)/man3/`basename $$each` ; done
for each in $(srcdir)/man/*.3 ; do $(RM) $(DESTDIR)$(mandir)/man3/`basename $$each` ; done
comedilib.pdf: $(SGML)
$(DOCBOOK2PDF) $(srcdir)/comedilib.sgml