-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
64 lines (47 loc) · 1.83 KB
/
Makefile
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
#####################################################
# Top-level Makefile for Grace #
#####################################################
# You should not change anything here. #
#####################################################
include Make.conf
subdirs : configure Make.conf
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE)) || exit 1; done
all : subdirs
install : subdirs
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE) install) || exit 1; done
$(MKINSTALLDIRS) $(DESTDIR)$(GRACE_HOME)
@if test -f $(DESTDIR)$(GRACE_HOME)/gracerc; then \
echo " $(DESTDIR)$(GRACE_HOME)/gracerc exists"; \
echo " Installing only $(DESTDIR)$(GRACE_HOME)/gracerc.sample"; \
$(INSTALL_DATA) gracerc $(DESTDIR)$(GRACE_HOME)/gracerc.sample; \
else \
$(INSTALL_DATA) gracerc $(DESTDIR)$(GRACE_HOME); \
fi
$(INSTALL_DATA) gracerc.user $(DESTDIR)$(GRACE_HOME)
tests : subdirs
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE) tests) || exit 1; done
check : tests
links : subdirs
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE) links) || exit 1; done
clean :
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
distclean :
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE) distclean) || exit 1; done
$(RM) config.log config.status config.cache config.h Make.conf
devclean :
@set -e; for i in $(SUBDIRS); do (cd $$i; $(MAKE) devclean) || exit 1; done
$(RM) config.log config.status config.cache config.h Make.conf \
configure CHANGES ChangeLog
texts : CHANGES ChangeLog
CHANGES : doc/CHANGES.html
@lynx -dump $? > CHANGES
ChangeLog :
./scripts/cvs2cl.pl -F grace-5_1-series
Make.conf : ac-tools/Make.conf.in configure
@echo
@echo 'Please re-run ./configure'
@echo
@exit 1
configure : ac-tools/configure.in ac-tools/aclocal.m4
autoconf ac-tools/configure.in > $@ && chmod +x $@
dummy :