# $Header: /CVSROOT/tinolib/diet/Makefile-gen,v 1.3 2005/08/15 00:47:45 tino Exp $ # # Generic Make to include # # $Log: Makefile-gen,v $ # Revision 1.3 2005/08/15 00:47:45 tino # updates for DebRIS improvements # # Revision 1.2 2005/07/17 01:17:49 tino # tinodiet.sh corrected # # Revision 1.1 2005/06/07 20:41:57 tino # This support is nearly not tested and not complete yet CP=cp LN=ln DIET=CC="`pwd`/tinodiet.sh" BUILDDIR=build.distignore BUILDSUB=$(BUILDDIR)/$(BASE) .PHONY: all clean distclean makeclean confclean # ifdef INCDIR $(LIBRARY): $(BUILDSUB)/$(LIBDIR)/$(LIBRARY) $(TARG) else $(LIBRARY): $(BUILDSUB)/$(LIBDIR)/$(LIBRARY) endif $(RM) '$@' && $(CP) -f '$<' '$@' && touch '$@' ifdef INCDIR $(TARG): $(BUILDSUB)/$(INCDIR) Makefile.$(TARG) $(RM) '$@' $(LN) -fs '$<' '$@' endif # Do a quick and direty clean job # As recompiling takes ages (literally) skip the rebuild clean: $(RM) $(LIBRARY) $(TARG) # Nothing to do, as everything is belos build.distignore distclean: clean # Run "make clean" # so everything is rebuild makeclean: clean $(MAKE) -C '$(BUILDSUB)' clean # Clean the preconfigured subdirectiries confclean: clean $(RM) -r '$(BUILDSUB)' $(BUILDSUB)/$(LIBDIR)/$(LIBRARY): $(BUILDSUB)/Makefile $(MAKE) -C '$(BUILDSUB)' $(CCPREFIX) ifneq (Makefile,$(CONF)) $(BUILDSUB)/Makefile: $(BUILDSUB)/$(CONF) Makefile.$(TARG) $(CCPREFIX) export CC; cd "`dirname '$<'`" && "./`basename '$<'`" $(CONFARGS) endif $(BUILDSUB)/$(CONF): $(BUILDDIR)/$(TARFILE).md5 $(RM) -r '$(BUILDSUB)' tar Cxf$(UNTAR) '$(BUILDDIR)' '$(BUILDDIR)/$(TARFILE)' && touch '$@' || { touch '$<'; exit 1; } $(BUILDDIR)/$(TARFILE).md5: Makefile.$(TARG) -mkdir -p '$(BUILDDIR)' md5sum -c '$@' 2>/dev/null || ( cd '$(BUILDDIR)' && wget -N '$(URLPATH)/$(TARFILE)'; ) echo "$(MD5SUM) *$(BUILDDIR)/$(TARFILE)" > "$@" md5sum -c '$@' || { $(RM) '$@'; exit 1; }