summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorlennart <lennart@bf9bc1cc-28ce-0310-abfb-9041aa761afb>2005-11-19 19:05:05 +0000
committerlennart <lennart@bf9bc1cc-28ce-0310-abfb-9041aa761afb>2005-11-19 19:05:05 +0000
commitdf2ce9dbb6e0d55aa375f57293a7b2bf31f44be7 (patch)
tree2a2a169b980da31711992b678dcdb76eb73c243f /Makefile
parentafbb33b5242fa09ef6097ba921113ebee92d9780 (diff)
clean up for distribution
git-svn-id: svn+ssh://rootserver/home/lennart/svn/private/projects/nss-myhostname@85 bf9bc1cc-28ce-0310-abfb-9041aa761afb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6b129df..9a528a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
+# $Id$
+
CFLAGS=-Wall -pipe -W -O2 -Wextra -Wno-unused-parameter
+VERSION=0.1
libnss_myhostname.so.2: nss-myhostname.o
$(CC) $(CFLAGS) -shared -o $@ -Wl,-soname,$@ $^
@@ -10,4 +13,13 @@ install:
clean:
rm -f *.o *~ libnss_myhostname.so.2
-.PHONY: clean
+nss-myhostname.tar.gz:
+ rm -rf "nss-myhostname-$(VERSION)"
+ mkdir "nss-myhostname-$(VERSION)"
+ cp Makefile README *.c "nss-myhostname-$(VERSION)"/
+ tar czf "nss-myhostname-$(VERSION).tar.gz" "nss-myhostname-$(VERSION)"/
+ rm -rf "nss-myhostname-$(VERSION)"
+
+tar: nss-myhostname.tar.gz
+
+.PHONY: clean install tar