DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(autocf21.info.gz) Transformation Rules

Info Catalog (autocf21.info.gz) Transformation Examples (autocf21.info.gz) Transforming Names
 
 9.4.3 Transformation 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.
 
Info Catalog (autocf21.info.gz) Transformation Examples (autocf21.info.gz) Transforming Names
automatically generated byinfo2html