Changeset 446 in openpam for trunk


Ignore:
Timestamp:
Oct 22, 2011, 2:46:24 AM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Use VPATH to eliminate the need for symlinks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/man/Makefile.am

    r397 r446  
    3737OMAN = \
    3838        openpam_borrow_cred.3 \
     39        openpam_expand_prompt.3 \
    3940        openpam_free_data.3 \
    4041        openpam_free_envlist.3 \
     
    6061ALLCMAN = $(PMAN) $(MMAN) $(OMAN)
    6162
    62 LINKS = $(ALLCMAN:.3=.c) openpam_configure.c openpam_dispatch.c
    63 
    6463dist_man3_MANS = $(ALLCMAN) openpam.3 pam.3 pam_conv.3
    6564
    6665dist_man5_MANS = pam.conf.5
    6766
    68 CLEANFILES = $(ALLCMAN) $(LINKS) openpam.3 pam.3 symlink-stamp
     67CLEANFILES = $(ALLCMAN) openpam.3 pam.3
    6968
    7069GENDOC = $(top_srcdir)/misc/gendoc.pl
    7170
     71SRCDIR = $(top_srcdir)/lib
     72
     73VPATH = $(SRCDIR)
     74
    7275SUFFIXES = .3
    7376
    74 $(LINKS): symlink-stamp
    75 
    76 symlink-stamp: Makefile
    77         for lnk in $(LINKS); do \
    78             ln -sf $(top_srcdir)/lib/$$lnk . || exit; \
    79         done
    80         touch symlink-stamp
    81 
    82 .c.3: symlink-stamp
     77.c.3: $(GENDOC)
    8378        perl -w $(GENDOC) $<
    8479
    8580openpam.3: $(OMAN) $(GENDOC) openpam.man
    86         perl -w $(GENDOC) -o $(OMAN) <$(srcdir)/openpam.man
     81        perl -w $(GENDOC) -o $(abs_srcdir)/$(OMAN) <$(srcdir)/openpam.man
    8782
    8883pam.3: $(PMAN) $(GENDOC) pam.man
    89         perl -w $(GENDOC) -p $(PMAN) <$(srcdir)/pam.man
     84        perl -w $(GENDOC) -p $(abs_srcdir)/$(PMAN) <$(srcdir)/pam.man
Note: See TracChangeset for help on using the changeset viewer.