X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=904b3d037f3e380f0a60beb891d85d91f7cab751;hb=226cb229f702d02954e7ce77c995ab2158a2f869;hp=86830ef49a2d811655d004ef495e2f126758cdfc;hpb=3aec438a5137e04c6e7952d3f9afd237002d1fda;p=i3%2Fi3status diff --git a/Makefile b/Makefile index 86830ef..904b3d0 100644 --- 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