aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3cfd829..b0be2a8 100644
--- a/Makefile
+++ b/Makefile
@@ -14,14 +14,15 @@ install:
-for d in $(DIRS); do (cd $$d; make install); done
pkg:
- rm -rf pkg
- mkdir -p pkg
+ $(eval _pkgname := "glouglou_pkg_$(shell date +%Y%m%d_%H%M)")
+ mkdir -p $(_pkgname)
cp libglouglou/libglouglou.so \
glougloud/glougloud \
gg_sniff/gg_sniff \
gg_trackproc/gg_trackproc \
gg_map/gg_map gg_map/glouglou_localsniff.sh \
- pkg
- tar -czf glouglou_pkg_`date +%Y%m%d_%H%M`.tgz pkg
+ $(_pkgname)
+ tar -czf $(_pkgname).tgz $(_pkgname)
+ @echo -e "\nCreated $(_pkgname) and $(_pkgname).tgz"
.PHONY: pkg