forked from FrontISTR/FrontISTR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
47 lines (42 loc) · 979 Bytes
/
Makefile.am
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
PREFIX = @prefix@
BINDIR = @bindir@
LIBDIR = @libdir@
INCLUDEDIR = @includedir@
MAKE = @make@
AR = @ar@
CP = @cp@
RM = @rm@
MV = @mv@
RANLIB = @ranlib@
MKDIR = @mkdir@
all:
@cd hecmw1 && $(MAKE)
@cd fistr1 && $(MAKE)
@cd hecmw2 && $(MAKE)
@cd fistr2 && $(MAKE)
@cd fistr && $(MAKE)
clean:
@cd hecmw1 && $(MAKE) clean
@cd fistr1 && $(MAKE) clean
@cd hecmw2 && $(MAKE) clean
@cd fistr2 && $(MAKE) clean
@cd fistr && $(MAKE) clean
distclean:
@cd hecmw1 && $(MAKE) distclean
@cd fistr1 && $(MAKE) distclean
@cd hecmw2 && $(MAKE) distclean
@cd fistr2 && $(MAKE) distclean
@cd fistr && $(MAKE) distclean
- $(RM) ./bin/*
install:
if [ ! -d $(PREFIX) ]; then \
$(MKDIR) $(PREFIX); \
fi
if [ ! -d $(BINDIR) ]; then \
$(MKDIR) $(BINDIR); \
fi
@cd hecmw1 && $(MAKE) install
@cd fistr1 && $(MAKE) install
@cd hecmw2 && $(MAKE) install
@cd fistr2 && $(MAKE) install
@cd fistr && $(MAKE) install