660d6b9c91
- Add NO_ARCH - Use DESTDIRNAME - Cosmetic fixes - Regenerate patches
47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
--- 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}
|