-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 988 Bytes
/
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
.PHONY: clean tar all gpupol analysis cpupol util gpupol2 denspol secstruct gpupol
RELEASE=1.2.0
PROJECT=conring
TAR_DIR=../tar
TAR_FILE="$(TAR_DIR)/$(PROJECT)-v$(RELEASE).tar.gz"
DIRS=cpupol util analysis denspol gpupol2 secstruct gpupol
export RELEASE
all: $(DIRS)
cpupol:
$(MAKE) -C cpupol
analysis:
$(MAKE) -C analysis
util:
$(MAKE) -C util
denspol:
$(MAKE) -C denspol
gpupol:
$(MAKE) -C gpupol
gpupol2:
$(MAKE) -C gpupol2
secstruct:
$(MAKE) -C secstruct
tar: clean
if [ ! -d $(TAR_DIR) ]; then mkdir -p $(TAR_DIR); fi
if [ ! -d $(TAR_DIR)/.old ]; then mkdir -p $(TAR_DIR)/.old; fi
if [ -f $(TAR_DIR)/*.tar.gz ]; then mv $(TAR_DIR)/*.tar.gz $(TAR_DIR)/.old; fi
tar --exclude data --exclude raw_data --exclude denspol/ee_topo.dat --exclude denspol/ee_topo.dat6 -czf $(TAR_FILE) .
install: all
for dir in $(DIRS); do $(MAKE) -C $$dir install; done
clean:
rm -f $(EXECS) *.o *~ bin/*
for dir in $(DIRS); do $(MAKE) -C $$dir clean; done
make -C scripts clean