#$Id: Make3,v 25.96 2006/08/28 05:45:51 al Exp $ -*- Makefile -*- # Copyright (C) 2001 Albert Davis # Author: Albert Davis # # This file is part of "Gnucap", the Gnu Circuit Analysis Package # # 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. #------------------------------------------------------------------------ # Part 3 of a Makefile #------------------------------------------------------------------------ tags: $(HDRS) $(SRCS) etags --c++ $(HDRS) $(SRCS) #------------------------------------------------------------------------ checkin: date "+#define PATCHLEVEL \"%Y.%m.%d RCS `cat rcsversion`\"" \ >patchlev.h -ci -u`cat rcsversion` -m. -t/dev/null $(RAW) -ci -r`cat rcsversion` -m. -t/dev/null $(DELETED) $(GENERATED) touch patchlev.h #------------------------------------------------------------------------ checkout: co $(RAW) #------------------------------------------------------------------------ #unclean: # rm $(ALL) #------------------------------------------------------------------------ backup: -mkdir BACKUP cp $(RAW) BACKUP #------------------------------------------------------------------------ depend: Make.depend Make.depend: $(SRCS) $(HDRS) $(CCC) -MM $(CCFLAGS) $(SRCS) > Make.depend #----------------------------------------------------------------------------- date: date "+#define PATCHLEVEL \"%Y.%m.%d RCS `cat rcsversion` +\"" \ >patchlev.h #----------------------------------------------------------------------------- manifest: MANIFEST MANIFEST: $(DISTFILES) echo $(DISTFILES) | sed 's/ /\n/g' >MANIFEST #----------------------------------------------------------------------------- md5sums: MD5SUMS MD5SUMS: $(DISTFILES) md5sum $(DISTFILES) | grep -v MD5SUMS >MD5SUMS #----------------------------------------------------------------------------- mostlyclean: rm -rf $(MOSTLYCLEANFILES) rm -f */*.o */*.obj */*.h */*.cc clean: rm -rf $(CLEANFILES) rm -f */*.o */*.obj */*.h */*.cc distclean: rm -rf $(DISTCLEANFILES) rm -f */*.o */*.obj */*.h */*.cc rm -f *~ \#*\# maintainer-clean: rm -rf $(MAINTAINERCLEANFILES) rm -f */*.o */*.obj */*.h */*.cc rm -f *~ \#*\# #----------------------------------------------------------------------------- #-----------------------------------------------------------------------------