# $Header: /CVSROOT/tinolib/old/Makefile.awk,v 1.14 2006/10/03 20:26:52 tino Exp $ # Create a Makefile out of Makefile.tino # # All the magic shall go into here with only a little help from the # caller side. Note that this is not completely ready yet, as it does # not support all the options I want it to support. However it does a # good job now. # # Read Makefile.proto on details how the template-system works. # # Copyright (C)2004-2006 Valentin Hilbig, webmaster@scylla-charybdis.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Log: Makefile.awk,v $ # Revision 1.14 2006/10/03 20:26:52 tino # Ubuntu has no gawk as awk, so gawk used instead of awk # # Revision 1.13 2006/06/11 19:47:25 tino # See ChangeLog # # Revision 1.12 2006/01/29 17:49:52 tino # Improved documentation and "make test" # # Revision 1.11 2005/12/05 02:11:12 tino # Copyright and COPYLEFT added # # Revision 1.10 2005/08/02 04:03:01 tino # C++ needed -lstdc++ # # Revision 1.9 2005/05/29 14:05:17 tino # SUBDIRS and overwrites (make variables STD_* and INSTALLPATH) implemented. # Some cleaner (install target) rulesets and predictable counter output (#c#). # # Revision 1.8 2004/10/05 02:09:07 tino # A lot of design improvements around the make -f Makefile.tino # # Revision 1.7 2004/09/29 23:32:33 tino # md5 checksum issues in Makefile generation fixed (hopefully) # # Revision 1.6 2004/09/04 14:25:20 tino # typos corrected # # Revision 1.5 2004/09/04 14:12:15 tino # Automated dependencies added and other make improvements. # # Revision 1.4 2004/08/24 23:49:36 tino # Feature MD5TINOIGN to ignore ever changing output lines from MD5 checks. # # Revision 1.3 2004/08/22 05:47:34 Administrator # Now Makefile generator understands to look into variables set in Makefile. # This way Auto-Dependencies can be improved a little step and more important, # the "TINOCOPY" functionality was added, such that I can copy files from # elsewhere to the distribution and keep that files in sync. # # Revision 1.2 2004/07/28 03:42:19 tino # - # # Revision 1.1 2004/07/21 13:29:14 tino # Creation of standard Makefile from Makefile.tino added # Give out a warning sign BEGIN { print "# Makefile automatically generated, do not edit!"; print "# This output (only this Makefile) is Public Domain."; print "#"; print "#@MD5TINOIGN@ Creation date: " strftime(); print "#"; print "# This file is based on following files:"; for (i=1; ia[5]) f = 1; # negate if needed if (a[1]!="") f = 3-f; # "or" the values if (o0) print l; close(f); } printf "%s", s; empty=1; } gather=""; }