diff options
author | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-12 12:03:41 +0000 |
---|---|---|
committer | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-12 12:03:41 +0000 |
commit | 068af198295a7f749060e9c9bd6822c4329d43ee (patch) | |
tree | a15f3a5fc248984aebbdcdc417a61bcd059652a3 | |
parent | 4cb3c7e785ea2eb841fb2feb6e85193bd2fe57be (diff) | |
download | libapr-068af198295a7f749060e9c9bd6822c4329d43ee.tar.gz |
auto-rebuild the exports file when a header changes
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60936 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | Makefile.in | 29 | ||||
-rwxr-xr-x | buildconf | 6 |
2 files changed, 24 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in index 94f968a1f..7c226ada0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,6 +31,8 @@ SUBDIRS=@SUBDIRS@ LIBAPR = @LIBPREFIX@apr.a +TARGET_EXPORTS = apr.exports + # # Rules for turning inputs into outputs # @@ -41,7 +43,7 @@ LIBAPR = @LIBPREFIX@apr.a # Rules for building specific targets, starting with 'all' for # building the entire package. # -all: Makefile $(LIBAPR) +all: Makefile $(LIBAPR) delete-exports $(TARGET_EXPORTS) $(LIBAPR): $(MODULES) subdirs @rm -rf objs @@ -52,19 +54,22 @@ $(LIBAPR): $(MODULES) subdirs $(RANLIB) $@ clean: subdirs_clean - $(RM) -f *.o *.a *.so objs/*.o + $(RM) -f *.o *.a *.so objs/*.o apr.exports depend: subdirs_depend distclean: subdirs_distclean - -$(RM) -f include/apr.h include/apr_private.h include/apr_private.h.in + -$(RM) -f include/apr.h include/arch/unix/apr_private.h -$(RM) -f *.o *.a *.so - -$(RM) -f config.cache config.status config.log configure apr.exports + -$(RM) -f config.cache config.status config.log -$(RM) -f Makefile -$(RM) -f APRVARS -$(RM) -rf objs cd test; $(MAKE) distclean; cd .. +extraclean: distclean + -$(RM) -f configure include/arch/unix/apr_private.h.in + subdirs: @for i in $(SUBDIRS); do \ echo "===> $(SDP)lib/apr/$$i"; \ @@ -100,8 +105,18 @@ subdirs_distclean: install: all -exports: - perl ./helpers/make_export.pl -o ./apr.exports include/*.h +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 ./helpers/make_export.pl -o $@ include/*.h docs: ./helpers/scandoc -i./helpers/default.pl -p./docs/ ./include/*.h @@ -116,6 +131,6 @@ test: $(LIBAPR) break; \ fi \ done ) - + # DO NOT REMOVE docs: $(INCDIR)/*.h @@ -1,8 +1,6 @@ #!/bin/sh -autoconf;autoheader +autoheader +autoconf (cd shmem/unix/mm && autoconf) - -perl ./helpers/make_export.pl -o ./apr.exports include/*.h - |