Copyright (C) 2000-2012 |
GNU Info (autoconf.info)Transformation RulesTransformation Rules -------------------- Here is how to use the variable `program_transform_name' in a `Makefile.in': transform=@program_transform_name@ install: all $(INSTALL_PROGRAM) myprog $(bindir)/`echo myprog|sed '$(transform)'` uninstall: rm -f $(bindir)/`echo myprog|sed '$(transform)'` If you have more than one program to install, you can do it in a loop: PROGRAMS=cp ls rm install: for p in $(PROGRAMS); do \ $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ done uninstall: for p in $(PROGRAMS); do \ rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \ done Whether to do the transformations on documentation files (Texinfo or `man') is a tricky question; there seems to be no perfect answer, due to the several reasons for name transforming. Documentation is not usually particular to a specific architecture, and Texinfo files do not conflict with system documentation. But they might conflict with earlier versions of the same files, and `man' pages sometimes do conflict with system documentation. As a compromise, it is probably best to do name transformations on `man' pages but not on Texinfo manuals. automatically generated by info2www version 1.2.2.9 |