]> git.sur5r.net Git - i3/i3status/blobdiff - Makefile
Add testcase for #304
[i3/i3status] / Makefile
index 86830ef49a2d811655d004ef495e2f126758cdfc..904b3d037f3e380f0a60beb891d85d91f7cab751 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,11 @@ OBJS:=$(filter-out src/pulse.o, $(OBJS))
 LIBS:=$(filter-out -lpulse, $(LIBS))
 endif
 
+ifeq ($(OS),DragonFly)
+OBJS:=$(filter-out src/pulse.o, $(OBJS))
+LIBS:=$(filter-out -lpulse, $(LIBS)) -lpthread
+endif
+
 src/%.o: src/%.c include/i3status.h
        $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
        @echo " CC $<"
@@ -99,6 +104,9 @@ i3status: ${OBJS}
        $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
        @echo " LD $@"
 
+test: i3status
+       LC_ALL=C ./travis/run-tests.pl
+
 clean:
        rm -f *.o src/*.o
 
@@ -113,8 +121,6 @@ install:
        install -m 755 -d $(DESTDIR)$(SYSCONFDIR)
        install -m 755 -d $(DESTDIR)$(MANPREFIX)/share/man/man1
        install -m 755 i3status $(DESTDIR)$(PREFIX)/bin/i3status
-       # Allow network configuration for getting the link speed
-       (which setcap && setcap cap_net_admin=ep $(DESTDIR)$(PREFIX)/bin/i3status) || true
        install -m 644 i3status.conf $(DESTDIR)$(SYSCONFDIR)/i3status.conf
        install -m 644 man/i3status.1 $(DESTDIR)$(MANPREFIX)/share/man/man1