summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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