Introduction
Introduction Statistics Contact Development Disclaimer Help
trename granular2pdf and install it - granular - granular dynamics simulation
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
commit 72f836211b5619a79101bb940815780ea2c6ce00
parent d6fc088af566d5a76d6858d599aa1b37948c85b8
Author: Anders Damsgaard <[email protected]>
Date: Fri, 19 Mar 2021 22:24:39 +0100
rename granular2pdf and install it
Diffstat:
M Makefile | 13 +++++++++----
R granularplot -> granular2pdf | 0
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -12,6 +12,9 @@ BIN = \
granular\
granular2vtu\
granularpacking
+SCRIPTS = \
+ granular2pdf
+
SRC = ${BIN:=.c} arrays.c grain.c granular.c packing.c simulation.c util.c
HDR = \
arg.h\
t@@ -28,7 +31,8 @@ GRANULAR_CFLAGS = ${CFLAGS} ${INCS} -DVERSION=\"${VERSION}\"
GRANULAR_LDFLAGS = ${LDFLAGS} ${LIBS}
GRANULAR_CPPFLAGS = ${CPPFLAGS}
-MAN1 = ${BIN:=.1}
+MAN1 = ${BIN:=.1}\
+ ${SCRIPTS:=.1}
MAN5 = ${NAME:=.5}
DOC = \
README.md\
t@@ -66,7 +70,8 @@ granular: granular.o arrays.o grain.o packing.o simulation.o…
dist:
rm -rf "${NAME}-${VERSION}"
mkdir -p "${NAME}-${VERSION}"
- cp -rf ${MAN1} ${MAN5} ${DOC} ${HDR} ${SRC} Makefile test "${NAME}-${V…
+ cp -rf ${MAN1} ${MAN5} ${DOC} ${HDR} ${SRC} ${SCRIPTS} \
+ Makefile test "${NAME}-${VERSION}"
# make tarball
tar cf - "${NAME}-${VERSION}" | \
gzip -c > "${NAME}-${VERSION}.tar.gz"
t@@ -75,7 +80,7 @@ dist:
install: ${BIN}
# installing executables
mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
+ cp -f ${BIN} ${SCRIPTS} ${DESTDIR}${PREFIX}/bin
for f in ${BIN}; do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done
# installing documentation and license information
mkdir -p ${DESTDIR}${DOCPREFIX}
t@@ -91,7 +96,7 @@ install: ${BIN}
uninstall:
# removing executable files
- for f in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
+ for f in ${BIN} ${SCRIPTS}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
# removing documentation and license information
for f in ${DOC}; do rm -f ${DESTDIR}${DOCPREFIX}/$$f; done
-rmdir ${DESTDIR}${DOCPREFIX}
diff --git a/granularplot b/granular2pdf
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.