1 #$Id: Make3,v 26.133 2009/11/26 04:58:04 al Exp $ -*- Makefile -*-
2 # Copyright (C) 2001 Albert Davis
3 # Author: Albert Davis <aldavis@gnu.org>
5 # This file is part of "Gnucap", the Gnu Circuit Analysis Package
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #------------------------------------------------------------------------
22 # Part 3 of a Makefile
23 #------------------------------------------------------------------------
25 etags --c++ $(HDRS) $(SRCS)
26 #------------------------------------------------------------------------
28 date "+#define PATCHLEVEL \"%Y.%m.%d RCS `cat rcsversion`\"" \
30 -ci -u`cat rcsversion` -m. -t/dev/null $(RAW)
31 -ci -r`cat rcsversion` -m. -t/dev/null $(DELETED) $(GENERATED)
33 #------------------------------------------------------------------------
36 #------------------------------------------------------------------------
37 install : $(INSTALL_FILES)
38 echo ==================
39 mkdir -p $(INSTALL_DIR)
40 cp $(INSTALL_FILES) $(INSTALL_DIR)
41 #------------------------------------------------------------------------
43 (cd $(INSTALL_DIR) ; rm $(INSTALL_FILES))
44 #------------------------------------------------------------------------
47 #------------------------------------------------------------------------
51 #------------------------------------------------------------------------
53 Make.depend: $(SRCS) $(HDRS)
54 $(CCC) -MM $(CCFLAGS) $(SRCS) > Make.depend
55 #-----------------------------------------------------------------------------
57 date "+#define PATCHLEVEL \"%Y.%m.%d RCS `cat rcsversion` +\"" \
59 #-----------------------------------------------------------------------------
61 $(CCC) -o /dev/null $(RAW_HDRS)
62 #-----------------------------------------------------------------------------
64 MANIFEST: $(DISTFILES)
65 echo $(DISTFILES) | sed 's/ /\n/g' >MANIFEST
66 #-----------------------------------------------------------------------------
69 md5sum $(DISTFILES) | grep -v MD5SUMS >MD5SUMS
70 #-----------------------------------------------------------------------------
72 rm -rf $(MOSTLYCLEANFILES)
73 rm -f */*.o */*.obj */*.h */*.cc
76 rm -f */*.o */*.obj */*.h */*.cc
78 rm -rf $(DISTCLEANFILES)
79 rm -f */*.o */*.obj */*.h */*.cc
82 rm -rf $(MAINTAINERCLEANFILES)
83 rm -f */*.o */*.obj */*.h */*.cc
85 #-----------------------------------------------------------------------------
86 #-----------------------------------------------------------------------------