tMakefile: add "dist" target - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
(HTM) git clone git://src.adamsgaard.dk/cngf-pf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1d1a4a362c52237b3a81ebf5cad99b165388a331
(DIR) parent ae6533011d3ae653fcafd4e08330d5a30c90775d
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 23 Nov 2020 13:37:25 +0100
Makefile: add "dist" target
Diffstat:
M Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -59,6 +59,15 @@ shear_flux: shear_flux.o
shear_flux.o\
-o $@
+dist:
+ rm -rf "${NAME}-${VERSION}"
+ mkdir -p "${NAME}-${VERSION}"
+ cp -rf ${MAN1} ${DOC} ${HDR} ${SRC} Makefile test "${NAME}-${VERSION}"
+ # make tarball
+ tar cf - "${NAME}-${VERSION}" | \
+ gzip -c > "${NAME}-${VERSION}.tar.gz"
+ rm -rf "${NAME}-${VERSION}"
+
install: ${BIN}
# installing executables
mkdir -p ${DESTDIR}${PREFIX}/bin
t@@ -88,4 +97,4 @@ test: ${BIN}
clean:
rm -f ${BIN} ${OBJ} test/*.txt
-.PHONY: all install uninstall watch test memtest clean
+.PHONY: all install uninstall test clean dist