prepare for additional subdirs for "install"

* targets.mk: modify install target to be based on pattern
          match so that additional SUBDIRS will be automatically
          processed
This commit is contained in:
Achim Gratz 2011-07-19 20:05:14 +02:00
parent 8bbf77a748
commit 236b79da67
1 changed files with 12 additions and 11 deletions

View File

@ -1,13 +1,15 @@
.PHONY: default all up2 update compile lisp doc \
install info html pdf card doc install-lisp install-info \
autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
.NOTPARALLEL: .PHONY .NOTPARALLEL: .PHONY
# Additional distribution files # Additional distribution files
DISTFILES_extra= Makefile request-assign-future.txt contrib etc DISTFILES_extra= Makefile request-assign-future.txt contrib etc
.EXPORT_ALL_VARIABLES: .EXPORT_ALL_VARIABLES:
LISPDIRS = lisp #contrib LISPDIRS = lisp
SUBDIRS = doc $(LISPDIRS) #contrib SUBDIRS = doc $(LISPDIRS)
INSTSUB = $(SUBDIRS:%=install-%)
.PHONY: default all up2 update compile lisp doc \
install info html pdf card docs $(INSTSUB) \
autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
compile: lisp compile: lisp
$(MAKE) -C $< $@ $(MAKE) -C $< $@
@ -24,18 +26,17 @@ update:
${MAKE} clean ${MAKE} clean
${MAKE} all ${MAKE} all
install: install-lisp install-info install: $(INSTSUB)
install-info: install-doc
docs: info html pdf card docs: info html pdf card
info html pdf card: info html pdf card:
$(MAKE) -C doc $@ $(MAKE) -C doc $@
install-lisp: $(INSTSUB):
$(MAKE) -C lisp install $(MAKE) -C $(@:install-%=%) install
install-info:
$(MAKE) -C doc install
autoloads: lisp maint.mk autoloads: lisp maint.mk
$(MAKE) -C $< $@ $(MAKE) -C $< $@