1 CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
9 VERSION=$(shell git describe --tags --abbrev=0)
11 ifeq ($(shell uname),Linux)
17 ifeq ($(shell uname),GNU/kFreeBSD)
21 # Define this if you want i3status to spit out dzen2-compatible output on stdout
23 CFLAGS+=$(EXTRA_CFLAGS)
25 OBJS:=$(wildcard src/*.c *.c)
29 @$(CC) $(CFLAGS) -c -o $@ $<
33 @$(CC) $(CFLAGS) -c -o $@ $<
39 @$(CC) -o $@ src/*.o *.o $(LDFLAGS)
52 install -m 755 -d $(DESTDIR)/usr/bin
53 install -m 755 -d $(DESTDIR)/etc
54 install -m 755 -d $(DESTDIR)/usr/share/man/man1
55 install -m 755 i3status $(DESTDIR)/usr/bin/i3status
56 install -m 644 i3status.conf $(DESTDIR)/etc/i3status.conf
57 install -m 644 man/i3status.1 $(DESTDIR)/usr/share/man/man1
60 [ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION}
61 mkdir i3status-${VERSION}
62 find . -maxdepth 1 -type f \( -regex ".*\.\(c\|conf\|h\)" -or -name "Makefile" -or -name "LICENSE" \) -exec cp '{}' i3status-${VERSION} \;
63 mkdir i3status-${VERSION}/src
64 mkdir i3status-${VERSION}/man
65 find src -maxdepth 1 -type f \( -regex ".*\.\(c\|h\)" \) -exec cp '{}' i3status-${VERSION}/src \;
66 find man -maxdepth 1 -type f \( -regex ".*\.\(1\|man\|conf\)" -or -name "Makefile" \) -exec cp '{}' i3status-${VERSION}/man \;
67 tar cjf i3status-${VERSION}.tar.bz2 i3status-${VERSION}
68 rm -rf i3status-${VERSION}