]> git.sur5r.net Git - i3/i3status/blobdiff - Makefile
Bugfix: Install manpage from new path (Thanks shatter)
[i3/i3status] / Makefile
index 2e9f93a053bbeb46b6caca79e936ad5b5d8a475f..2b8f0cc3c7d46efad5acd938f78efd66df331c32 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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,13 +45,16 @@ 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}
@@ -57,5 +62,3 @@ release:
        find . -maxdepth 1 -type f \( -regex ".*\.\(c\|conf\|1\|h\)" -or -name "Makefile" \) -exec cp '{}' i3status-${VERSION} \;
        tar cjf i3status-${VERSION}.tar.bz2 i3status-${VERSION}
        rm -rf i3status-${VERSION}
-
-all: i3status