[PD-cvs] externals/zexy/src Makefile,1.2,1.3

IOhannes m zmölnig zmoelnig at users.sourceforge.net
Tue Nov 29 17:30:47 CET 2005


Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21137

Modified Files:
	Makefile 
Log Message:
hopefully fixed the dependencies of .d and Make.config and ....
this should ease the build


Index: Makefile
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Makefile	27 Oct 2005 21:15:33 -0000	1.2
--- Makefile	29 Nov 2005 16:30:45 -0000	1.3
***************
*** 1,4 ****
--- 1,10 ----
  default: all
  
+ .PHONEY: default all everything dist \
+ 	clean realclean distclean \
+ 	install install-bin install-doc install-abs
+ 
+ SOURCES=$(sort $(filter %.c, $(wildcard *.c)))
+ 
  Make.config: Make.config.in configure
  	./configure
***************
*** 8,16 ****
  	autoconf
  
! include Make.config
  
! .SUFFIXES: .$(EXT)
  
! SOURCES=$(sort $(filter %.c, $(wildcard *.c)))
  
  TARGETS = $(SOURCES:.c=.o)
--- 14,38 ----
  	autoconf
  
! ## uaehh, here comes some magic
! ##  1st we don't want depend and config-makefiles to be included on "clean"-targets
  
! ifeq (,$(findstring clean, $(MAKECMDGOALS)))
! -include $(SOURCES:.c=.d)
! -include Make.config
! endif
  
! ##  2nd only generate depend-files when we have Make.config included
! ##  and thus MAKEDEP_FLAGS defined
! ifdef MAKEDEP_FLAGS
! ## dependencies: as proposed by the GNU-make documentation
! ## see http://www.gnu.org/software/make/manual/html_node/make_47.html#SEC51
! %.d: %.c
! 	@set -e; rm -f $@; \
! 	 $(CPP) $(MAKEDEP_FLAGS) $(Z_CFLAGS) $< > $@.$$$$; \
! 	 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
! 	 rm -f $@.$$$$
! endif
! 
! .SUFFIXES: .$(EXT)
  
  TARGETS = $(SOURCES:.c=.o)
***************
*** 31,42 ****
  	-rm -f *.$(EXT) *.o 
  
! cleaner: clean
  	-rm -f *~ _* config.*
  	-rm -f *.d *.d.*
  
! cleanest: cleaner
! 	-rm -f Makefile ../*.$(EXT)
! 
! distclean: cleanest
  
  install: install-bin install-doc install-abs
--- 53,62 ----
  	-rm -f *.$(EXT) *.o 
  
! realclean: clean
  	-rm -f *~ _* config.*
  	-rm -f *.d *.d.*
  
! distclean: realclean
! 	-rm -f Make.config ../*.$(EXT)
  
  install: install-bin install-doc install-abs
***************
*** 54,68 ****
  	-install -m 644 ../abs/*.pd $(INSTALL_BIN)
  
! dist: all cleaner
  	(cd ../..;tar czvf $(TARNAME) $(LIBNAME))
  
  everything: clean all install distclean
  
- ## dependencies: as proposed by the GNU-make documentation
- ## see http://www.gnu.org/software/make/manual/html_node/make_47.html#SEC51
- -include $(SOURCES:.c=.d)
- %.d: %.c
- 	@set -e; rm -f $@; \
- 	 $(CC) $(MAKEDEP_FLAGS) $(Z_CFLAGS) $< > $@.$$$$; \
- 	 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
- 	 rm -f $@.$$$$
--- 74,80 ----
  	-install -m 644 ../abs/*.pd $(INSTALL_BIN)
  
! dist: all realclean
  	(cd ../..;tar czvf $(TARNAME) $(LIBNAME))
  
  everything: clean all install distclean
  





More information about the Pd-cvs mailing list