Generate manpage in Makefile

This commit is contained in:
Michael Stapelberg 2009-10-12 09:59:11 +02:00
parent 1815ea410d
commit a291596367

View File

@ -33,6 +33,8 @@ src/%.o: src/%.c
@$(CC) $(CFLAGS) -c -o $@ $< @$(CC) $(CFLAGS) -c -o $@ $<
@echo " CC $<" @echo " CC $<"
all: i3status manpage
i3status: ${OBJS} i3status: ${OBJS}
@$(CC) -o $@ src/*.o *.o $(LDFLAGS) @$(CC) -o $@ src/*.o *.o $(LDFLAGS)
@echo " LD $@" @echo " LD $@"
@ -43,6 +45,9 @@ clean:
distclean: clean distclean: clean
rm -f i3status rm -f i3status
manpage:
make -C man
install: install:
install -m 755 -d $(DESTDIR)/usr/bin install -m 755 -d $(DESTDIR)/usr/bin
install -m 755 -d $(DESTDIR)/etc install -m 755 -d $(DESTDIR)/etc
@ -57,5 +62,3 @@ release:
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\|1\|h\)" -or -name "Makefile" \) -exec cp '{}' i3status-${VERSION} \;
tar cjf i3status-${VERSION}.tar.bz2 i3status-${VERSION} tar cjf i3status-${VERSION}.tar.bz2 i3status-${VERSION}
rm -rf i3status-${VERSION} rm -rf i3status-${VERSION}
all: i3status