1 #$Id: Make3 2016/04/19 al $ -*- 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 #------------------------------------------------------------------------
29 #------------------------------------------------------------------------
30 install : $(INSTALL_FILES)
31 echo ==================
32 mkdir -p $(DESTDIR)$(INSTALL_DIR)
33 cp $(INSTALL_FILES) $(DESTDIR)$(INSTALL_DIR)
34 #------------------------------------------------------------------------
36 (cd $(DESTDIR)$(INSTALL_DIR) ; rm $(INSTALL_FILES))
37 #------------------------------------------------------------------------
40 #------------------------------------------------------------------------
44 #------------------------------------------------------------------------
46 Make.depend: $(SRCS) $(HDRS)
47 $(CCC) -MM $(CCFLAGS) $(SRCS) > Make.depend
48 #-----------------------------------------------------------------------------
50 date "+#define PATCHLEVEL \"`git branch | awk '/\*/ { print $$2; }'` %Y.%m.%d\"" \
52 #-----------------------------------------------------------------------------
54 -$(CCC) -I../include -o /dev/null $(RAW_HDRS)
55 #-----------------------------------------------------------------------------
57 MANIFEST: $(DISTFILES)
58 echo $(DISTFILES) | sed 's/ /\n/g' >MANIFEST
59 #-----------------------------------------------------------------------------
62 md5sum $(DISTFILES) | grep -v MD5SUMS >MD5SUMS
63 #-----------------------------------------------------------------------------
65 rm -rf $(MOSTLYCLEANFILES)
66 rm -f */*.o */*.obj */*.h */*.cc
69 rm -f */*.o */*.obj */*.h */*.cc
71 rm -rf $(DISTCLEANFILES)
72 rm -f */*.o */*.obj */*.h */*.cc
75 rm -rf $(MAINTAINERCLEANFILES)
76 rm -f */*.o */*.obj */*.h */*.cc
78 #-----------------------------------------------------------------------------
79 #-----------------------------------------------------------------------------