forked from gnucap/gnucap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMake3
86 lines (86 loc) · 3.31 KB
/
Make3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#$Id: Make3,v 26.133 2009/11/26 04:58:04 al Exp $ -*- Makefile -*-
# Copyright (C) 2001 Albert Davis
# Author: Albert Davis <aldavis@gnu.org>
#
# 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 3, 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)
#------------------------------------------------------------------------
install : $(INSTALL_FILES)
echo ==================
mkdir -p $(INSTALL_DIR)
cp $(INSTALL_FILES) $(INSTALL_DIR)
#------------------------------------------------------------------------
uninstall :
(cd $(INSTALL_DIR) ; rm $(INSTALL_FILES))
#------------------------------------------------------------------------
#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
#-----------------------------------------------------------------------------
header-check:
$(CCC) -o /dev/null $(RAW_HDRS)
#-----------------------------------------------------------------------------
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 *~ \#*\#
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------