Added tar make target. - susmb - mounting of SMB/CIFS shares via FUSE
HTML git clone git://git.codemadness.org/susmb
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit dacaf8a481832976d782523fee34e60fce1cf257
DIR parent 204718c0f28f64e603bc573966742f1506961a77
HTML Author: geoff <devnull@localhost>
Date: Sun, 7 May 2006 22:51:38 +0000
Added tar make target.
Diffstat:
M Makefile | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -42,6 +42,7 @@ OBJECTS = $(SOURCES:.c=.o)
PROGRAM = usmb
+
all: $(PROGRAM)
debug: CFLAGS += -ggdb -DDEBUG
@@ -56,6 +57,10 @@ clean:
$(RM) $(PROGRAM) $(OBJECTS)
+distclean: clean
+ $(RM) core usmb-*.tar.bz2 doc/*.mdzip.bak
+
+
install-strip: STRIPFLAGS = -s
install install-strip: $(PROGRAM)
mkdir -p $(BINDIR)
@@ -68,4 +73,16 @@ uninstall:
@echo Please delete ~/.usmb.conf manually.
-.PHONY: all debug install install-strip uninstall clean
+tar: VERSION=$(shell grep 'USMB_VERSION[^_]' version.h | sed 's/.*0x//')
+tar: STAGING=/tmp/usmb-$(VERSION)
+tar:
+ mkdir $(STAGING)
+ cp -a $(PWD)/* $(STAGING)/
+ rm -rf $(STAGING)/MT
+ (cd $(STAGING)/..; \
+ make -C $(STAGING) distclean ; \
+ tar jcf $(PWD)/usmb-$(VERSION).tar.bz2 usmb-$(VERSION))
+ rm -rf $(STAGING)
+
+
+.PHONY: all debug install install-strip uninstall clean distclean tar