-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathMakefile
30 lines (26 loc) · 1.05 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
top_srcdir=.
CONFIG_MAKE=$(top_srcdir)/config.make
-include $(top_srcdir)/config.make
all:
mkdir -p bin
mkdir -p lib/include
test ! -d lib/src || (cd lib/src && $(MAKE))
test ! -d Montage || (cd Montage && $(MAKE) && $(MAKE) install)
test ! -d util || (cd util && $(MAKE))
test ! -d grid || (cd grid && $(MAKE))
test ! -d MontageLib || (cd MontageLib && $(MAKE))
test ! -d ancillary || (cd ancillary && $(MAKE) && $(MAKE) install)
test ! -d HiPS || (cd HiPS && $(MAKE))
install:
cp bin/* $(montage_prefix)/bin
clean:
mkdir -p bin
mkdir -p lib/include
rm -rf bin/*
test ! -d lib/src || (cd lib/src && $(MAKE) clean)
test ! -e Montage/Makefile || (cd Montage && $(MAKE) clean)
test ! -d util || (cd util && $(MAKE) clean)
test ! -d grid || (cd grid && $(MAKE) clean)
test ! -d MontageLib || (cd MontageLib && $(MAKE) clean)
test ! -d ancillary || (cd ancillary && $(MAKE) clean)
test ! -d HiPS || (cd HiPS && $(MAKE) clean)