2011-07-12 16:31:41 -04:00
|
|
|
.NOTPARALLEL: .PHONY
|
2011-07-12 13:45:59 -04:00
|
|
|
# Additional distribution files
|
|
|
|
DISTFILES_extra= Makefile request-assign-future.txt contrib etc
|
2011-07-16 16:49:24 -04:00
|
|
|
.EXPORT_ALL_VARIABLES:
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-19 14:05:14 -04:00
|
|
|
LISPDIRS = lisp
|
|
|
|
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
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-17 08:49:43 -04:00
|
|
|
compile: lisp
|
2011-09-25 05:17:53 -04:00
|
|
|
$(MAKE) -C $< clean
|
2011-07-17 08:49:43 -04:00
|
|
|
$(MAKE) -C $< $@
|
|
|
|
|
2011-07-18 11:55:23 -04:00
|
|
|
all \
|
|
|
|
clean-install: $(SUBDIRS)
|
2011-07-17 08:49:43 -04:00
|
|
|
$(foreach dir, $?, $(MAKE) -C $(dir) $@;)
|
2011-07-12 13:45:59 -04:00
|
|
|
|
|
|
|
up2: update
|
|
|
|
sudo ${MAKE} install
|
|
|
|
|
|
|
|
update:
|
|
|
|
git pull
|
|
|
|
${MAKE} clean
|
|
|
|
${MAKE} all
|
|
|
|
|
2011-07-19 14:05:14 -04:00
|
|
|
install: $(INSTSUB)
|
|
|
|
|
|
|
|
install-info: install-doc
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-17 08:49:43 -04:00
|
|
|
docs: info html pdf card
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-17 08:49:43 -04:00
|
|
|
info html pdf card:
|
|
|
|
$(MAKE) -C doc $@
|
2011-07-12 16:31:41 -04:00
|
|
|
|
2011-07-19 14:05:14 -04:00
|
|
|
$(INSTSUB):
|
|
|
|
$(MAKE) -C $(@:install-%=%) install
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-16 16:49:24 -04:00
|
|
|
autoloads: lisp maint.mk
|
2011-07-17 08:49:43 -04:00
|
|
|
$(MAKE) -C $< $@
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-17 08:49:43 -04:00
|
|
|
cleanall: $(SUBDIRS)
|
|
|
|
$(foreach dir, $?, $(MAKE) -C $(dir) $@;)
|
|
|
|
-$(FIND) . -name \*~ -exec $(RM) {} \;
|
2011-07-12 16:31:41 -04:00
|
|
|
|
2011-07-17 08:49:43 -04:00
|
|
|
clean: cleanrel
|
2011-07-16 16:49:24 -04:00
|
|
|
$(MAKE) -C lisp clean
|
2011-07-17 08:49:43 -04:00
|
|
|
$(MAKE) -C doc clean
|
2011-07-12 16:31:41 -04:00
|
|
|
-$(FIND) . -name \*~ -exec $(RM) {} \;
|
|
|
|
|
|
|
|
cleancontrib:
|
|
|
|
-$(FIND) contrib -name \*~ -exec $(RM) {} \;
|
|
|
|
|
|
|
|
cleanrel:
|
2011-07-17 08:49:43 -04:00
|
|
|
$(RMR) RELEASEDIR
|
|
|
|
$(RMR) org-7.*
|
|
|
|
$(RMR) org-7*zip org-7*tar.gz
|