diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |