forked from NekCEM/NekCEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 825 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
prefix ?= /usr/local
bindir ?= /usr/local/bin
curdir = $(shell pwd)
build:
@echo "Nothing to build; see README.md for details."
install:
@mkdir -p $(DESTDIR)$(prefix)/NekCEM
@cp -r src $(DESTDIR)$(prefix)/NekCEM
@cp -r bin $(DESTDIR)$(prefix)/NekCEM
@mkdir -p $(DESTDIR)$(bindir)
@ln -s $(DESTDIR)$(prefix)/NekCEM/bin/configurenek $(DESTDIR)$(bindir)/configurenek
@ln -s $(DESTDIR)$(prefix)/NekCEM/bin/nek $(DESTDIR)$(bindir)/nek
uninstall:
@unlink $(DESTDIR)$(bindir)/configurenek
@unlink $(DESTDIR)$(bindir)/nek
@rm -rf $(DESTDIR)$(prefix)/NekCEM
install_inplace:
@mkdir -p $(DESTDIR)$(bindir)
@ln -s $(curdir)/bin/configurenek $(DESTDIR)$(bindir)/configurenek
@ln -s $(curdir)/bin/nek $(DESTDIR)$(bindir)/nek
uninstall_inplace:
@unlink $(DESTDIR)$(bindir)/configurenek
@unlink $(DESTDIR)$(bindir)/nek