X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=e84d0cdaa29712d25261488b2f91ca60017fbc28;hb=5a3cc23896473e8315cf9cf7b8e8f2db32944e3c;hp=2e9f93a053bbeb46b6caca79e936ad5b5d8a475f;hpb=f947d0a446b1b99020722cbc71127fc0c06086b2;p=i3%2Fi3status diff --git a/Makefile b/Makefile index 2e9f93a..e84d0cd 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ CFLAGS+=-lbsd endif # Define this if you want i3status to spit out dzen2-compatible output on stdout -CFLAGS+=-DDZEN +#CFLAGS+=-DDZEN CFLAGS+=$(EXTRA_CFLAGS) OBJS:=$(wildcard src/*.c *.c) @@ -33,6 +33,8 @@ src/%.o: src/%.c @$(CC) $(CFLAGS) -c -o $@ $< @echo " CC $<" +all: i3status manpage + i3status: ${OBJS} @$(CC) -o $@ src/*.o *.o $(LDFLAGS) @echo " LD $@" @@ -43,19 +45,24 @@ clean: distclean: clean rm -f i3status +manpage: + make -C man + install: install -m 755 -d $(DESTDIR)/usr/bin install -m 755 -d $(DESTDIR)/etc install -m 755 -d $(DESTDIR)/usr/share/man/man1 install -m 755 i3status $(DESTDIR)/usr/bin/i3status install -m 644 i3status.conf $(DESTDIR)/etc/i3status.conf - install -m 644 i3status.1 $(DESTDIR)/usr/share/man/man1 + install -m 644 man/i3status.1 $(DESTDIR)/usr/share/man/man1 release: [ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION} mkdir i3status-${VERSION} - find . -maxdepth 1 -type f \( -regex ".*\.\(c\|conf\|1\|h\)" -or -name "Makefile" \) -exec cp '{}' i3status-${VERSION} \; + find . -maxdepth 1 -type f \( -regex ".*\.\(c\|conf\|h\)" -or -name "Makefile" -or -name "LICENSE" \) -exec cp '{}' i3status-${VERSION} \; + mkdir i3status-${VERSION}/src + mkdir i3status-${VERSION}/man + find src -maxdepth 1 -type f \( -regex ".*\.\(c\|h\)" \) -exec cp '{}' i3status-${VERSION}/src \; + find man -maxdepth 1 -type f \( -regex ".*\.\(1\|man\|conf\)" -or -name "Makefile" \) -exec cp '{}' i3status-${VERSION}/man \; tar cjf i3status-${VERSION}.tar.bz2 i3status-${VERSION} rm -rf i3status-${VERSION} - -all: i3status