From 6e431c6254a2af855dbaebb010157965610b7440 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 9 Aug 2011 13:25:33 +0200 Subject: [PATCH] Makefile: add documentation target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c0d1b0e..154fb6b 100644 --- a/Makefile +++ b/Makefile @@ -33,13 +33,16 @@ VERSION : -include VERSION .SUFFIXES: .c .o -.PHONY : clean distclean +.PHONY : docs clean distclean all:: $(PROGRAM) $(PROGRAM) : src/archived.o $(obj) $(QUIET_LD)$(LD) $(sort $(^)) -o $@ $(LDFLAGS) +docs : + $(MAKE) -C docs all + clean : @for obj in $(shell find . -name "*.o" -type f -printf "%P\n"); do \ echo $(RM) $$obj;$(RM) $$obj; \