apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@locus.apache.org
Subject cvs commit: apr-util Makefile.in
Date Tue, 12 Dec 2000 11:05:34 GMT
gstein      00/12/12 03:05:33

  Modified:    .        Makefile.in
  Log:
  auto-rebuild the exports file when a header changes
  
  Revision  Changes    Path
  1.6       +14 -3     apr-util/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/apr-util/Makefile.in,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -u -r1.5 -r1.6
  --- Makefile.in	2000/12/06 05:02:13	1.5
  +++ Makefile.in	2000/12/12 11:05:32	1.6
  @@ -3,8 +3,9 @@
   #
   
   TARGET_LIB = libaprutil.la
  +TARGET_EXPORTS = aprutil.exports
   
  -TARGETS = delete-lib $(TARGET_LIB) aprutil.exports
  +TARGETS = delete-lib $(TARGET_LIB) delete-exports $(TARGET_EXPORTS)
   
   top_builddir = @top_builddir@
   include $(top_builddir)/build/rules.mk
  @@ -33,7 +34,17 @@
   	    echo $(LINK) $$objects ; \
   	    $(LINK) -rpath $(libdir) $$objects
   
  -aprutil.exports:
  +delete-exports:
  +	@if test -f $(TARGET_EXPORTS); then \
  +	    headers="`find include/*.h -maxdepth 0 -newer $(TARGET_EXPORTS)`" ; \
  +	    if test -n "$$headers"; then \
  +		echo Found newer headers. Will rebuild $(TARGET_EXPORTS). ; \
  +		echo $(RM) -f $(TARGET_EXPORTS) ; \
  +		$(RM) -f $(TARGET_EXPORTS) ; \
  +	    fi \
  +	fi
  +
  +$(TARGET_EXPORTS):
   	perl @APR_SOURCE_DIR@/helpers/make_export.pl -o $@ include/*.h
   
   docs:
  @@ -41,4 +52,4 @@
   	perl @APR_SOURCE_DIR@/helpers/scandoc -i./build/default.pl -p./docs/ ./include/*.h
   
   
  -.PHONY: delete-lib
  +.PHONY: delete-lib delete-exports
  
  
  

Mime
View raw message