aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-05 09:34:16 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-05 09:34:16 +0200
commitcaf76b946fb43242b0078039aa8678686d47e959 (patch)
tree15bc2eb81c61c78e7539f01c4a487da505aec841
parentnaming (diff)
downloadglouglou-caf76b946fb43242b0078039aa8678686d47e959.tar.xz
glouglou-caf76b946fb43242b0078039aa8678686d47e959.zip
pkg naming
-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