blob: 1ff1972bf6272dba16d92f4c0d43c55421f2c36c (
plain) (
blame)
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
|
--- Makefile.orig 2002-05-01 21:15:20 UTC
+++ Makefile
@@ -11,8 +11,8 @@
# --- The default settings will install SMM++ nicely into an
# usual unix environment (if you have root access).
-BIN=/usr/local/bin
-SRC=/usr/local/lib/smm
+BIN=${PREFIX}/bin
+SRC=${PREFIX}/lib/smm
# --- If you don't have root access, you could choose to install
# SMM++ locally in your home directory. Therefore use the
@@ -58,6 +58,8 @@ TROUBLEoptionmenu=0
# this Makefile. If you can read Makefiles, feel free
# to do whatever you like.
+all: smm
+
smm: Makefile
@echo "--- Building startup file."
@if [ -z ${ITKWISH} ] ; then \
@@ -80,18 +82,18 @@ install-bin:
@echo "--- Installing startup file to '${BIN}'."
@echo " Please make sure, that '${BIN}' is part of your PATH variable."
@echo " Or start SMM++ with ${BIN}/smm."
- @install -d ${BIN}
- @install -c smm ${BIN}
+ @install -d ${STAGEDIR}${BIN}
+ @install -c smm ${STAGEDIR}${BIN}
uninstall-bin:
@echo "--- Uninstalling startup file from '${BIN}'."
@echo " Leaving the bin-dir untouched."
@rm -f ${BIN}/smm
install-src:
@echo "--- Installing libraries to ${SRC}."
- @install -d ${SRC}
- @cp -Rp ../sources ${SRC}
- @cp -Rp ../images ${SRC}
- @cp -Rp ../config ${SRC}
+ @install -d ${STAGEDIR}${SRC}
+ @cp -Rp ../sources ${STAGEDIR}${SRC}
+ @cp -Rp ../images ${STAGEDIR}${SRC}
+ @cp -Rp ../config ${STAGEDIR}${SRC}
uninstall-src:
@echo "--- Uninstalling libraries from ${SRC}."
@rm -rf ${SRC}
|