Skip to content

Commit ce8cbd6

Browse files
committed
Add a simple Makefile to make install/uninstall galyleo
This should help make the uninstall/install process a bit more straightforward during upgrades on production systems. And may simplify the use of Spack to install and maintain galyleo as a package on systems like Expanse and TSCC.
1 parent 9b5252f commit ce8cbd6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
PREFIX=${HOME}/galyleo
2+
DESTDIR=
3+
4+
INSTDIR=$(DESTDIR)$(PREFIX)
5+
INSTLIB=$(INSTDIR)/lib
6+
7+
all:
8+
@echo do nothing. try one of the targets:
9+
@echo " install"
10+
@echo " uninstall"
11+
12+
install:
13+
test -d $(INSTDIR) || mkdir -p $(INSTDIR)
14+
test -d $(INSTLIB) || mkdir -p $(INSTLIB)
15+
install -m 0755 -D lib/* $(INSTLIB)
16+
install -m 0755 galyleo $(INSTDIR)
17+
@echo Run galyleo --configure after install
18+
19+
uninstall:
20+
rm -rf $(INSTDIR)
21+
22+
.PHONY: all install uninstall

0 commit comments

Comments
 (0)