Generate this Makefile.am from Makefile.am.in.
This commit is contained in:
		
							parent
							
								
									8c2b6537d3
								
							
						
					
					
						commit
						94921d6e57
					
				
					 2 changed files with 3 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -94,6 +94,9 @@ do
 | 
			
		|||
      aclocalinclude="$ACLOCAL_FLAGS"
 | 
			
		||||
      for k in $macrodirs; do
 | 
			
		||||
  	if test -d $k; then
 | 
			
		||||
	  if test -f $k/Makefile.am.in; then
 | 
			
		||||
	    make -C $k -f Makefile.am.in Makefile.am
 | 
			
		||||
	  fi
 | 
			
		||||
          aclocalinclude="$aclocalinclude -I $k"
 | 
			
		||||
  	##else 
 | 
			
		||||
	##  echo "**Warning**: No such directory \`$k'.  Ignored."
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,18 +0,0 @@
 | 
			
		|||
## Process this file with automake to produce Makefile.in   -*-Makefile-*-
 | 
			
		||||
 | 
			
		||||
##m4-files-begin
 | 
			
		||||
EXTRA_DIST = README Makefile.am.in malloc.m4 perl.m4 realloc.m4
 | 
			
		||||
 | 
			
		||||
##m4-files-end
 | 
			
		||||
 | 
			
		||||
Makefile.am: Makefile.am.in
 | 
			
		||||
	rm -f $@ $@t
 | 
			
		||||
	sed -n '1,/^##m4-files-begin/p' $< > $@t
 | 
			
		||||
	( echo EXTRA_DIST = README Makefile.am.in; \
 | 
			
		||||
	  find . -type f -name '*.m4' -print |sed 's,^\./,,' |sort ) \
 | 
			
		||||
	  |fmt | (tr '\012' @; echo) \
 | 
			
		||||
	      |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
 | 
			
		||||
	        >> $@t
 | 
			
		||||
	sed -n '/^##m4-files-end/,$$p' $< >> $@t
 | 
			
		||||
	chmod a-w $@t
 | 
			
		||||
	mv $@t $@
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue