Project from my 2nd year Engineering School
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
581 B

SUBDIRS := $(wildcard doc-*)
help:
@echo "Usages: make <target>"
@echo " all : build all documentations"
@echo " new-doc : create a new documentation from a template"
@echo " clean : clean all documentations"
all: $(SUBDIRS)
$(SUBDIRS):
make -C $@ all
clean:
@for i in $(SUBDIRS); do make -C "$$i" clean || exit 1; done
new-doc: template
@echo "Enter the name of your documentation (no space, special chars, etc.): "
@echo -n "name> " ; read name ; echo "Creating doc-$$name..." ; cp -r template "doc-$$name"
.PHONY: $(SUBDIRS) new-doc all help clean