Ignore:
Timestamp:
Jan 30, 2011, 4:43:08 AM (12 years ago)
Author:
Peter
Message:

fixes #655. add a helper script, gen-yat-pc.sh, that generates yat.pc. Variables are now kept implicit if possible, for example, exec_prefix=${prefix} and similar for includedir and libdir which are defined via ${prefix} and ${exec_prefix}, respectively. Added yat-pc-check that is called within maintainer-check to check that generation of yat.pc is correct with different combinations of arguments to configure and make.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_support/Makefile.am

    r2328 r2418  
    33## $Id$
    44
    5 # Copyright (C) 2008, 2009, 2010 Peter Johansson
     5# Copyright (C) 2008, 2009, 2010, 2011 Peter Johansson
    66#
    77# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2828
    2929EXTRA_DIST =  move-if-change yat-config.in yat.pc.in
    30 
    31 
    3230
    3331edit = $(SED) \
     
    7371  @echo creating $@
    7472
    75 yat.pc: Makefile $(srcdir)/yat.pc.in
    76   @rm -f $@ $@.tmp
    77   @echo "# $@ generated by make from yat.pc.in" > $@.tmp
    78   @$(edit) '$(srcdir)/$@.in' >>$@.tmp
    79   @chmod a-w $@.tmp
    80   @mv $@.tmp $@
    81   @echo creating $@
     73yat.pc: $(srcdir)/yat.pc.in gen_yat_pc.sh Makefile
     74  @$(SHELL) gen_yat_pc.sh --prefix="$(prefix)" --exec-prefix="$(exec_prefix)" \
     75  --libdir="$(libdir)" --includedir="$(includedir)" \
     76  --input="$(srcdir)/yat.pc.in" > $@-t && mv $@-t $@
     77
    8278
    8379install-exec-hook:
Note: See TracChangeset for help on using the changeset viewer.