]> git.sur5r.net Git - i3/i3status/commitdiff
Add release target to Makefile, use -f for deletion
authorMichael Stapelberg <michael+x200@stapelberg.de>
Fri, 24 Oct 2008 19:29:00 +0000 (21:29 +0200)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Fri, 24 Oct 2008 19:29:00 +0000 (21:29 +0200)
Makefile

index 3640b273c1c1b4a6d1ec45a2f895728d271cd016..11c02bd43425cbe9942ece4bf367f1769571e41e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,10 @@ CFLAGS+=-DPREFIX=\"\"
 wmiistatus: wmiistatus.o wmiistatus.h config.h config.o
 
 clean:
-       rm *.o
+       rm -f *.o
 
 distclean: clean
-       rm wmiistatus
+       rm -f wmiistatus
 
 install:
        install -m 755 -d $(DESTDIR)/usr/bin
@@ -17,4 +17,8 @@ install:
        install -m 755 wmiistatus.init $(DESTDIR)/etc/init.d/wmiistatus
        install -m 644 wmiistatus.conf $(DESTDIR)/etc/wmiistatus.conf
 
+release:
+       tar cf wmiistatus.tar *.c *.h *.1 *.conf *.init Makefile
+       bzip2 -9 wmiistatus.tar
+
 all: wmiistatus