mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-20 17:48:35 +00:00
Makefile: remove includes for maintainer targets, these will go into local.mk on the server default.mk: introduce $(datadir) to replace $(etcdir) in etc/Makefile doc/Makefile: replace $etcdir) with $(datadir) lisp/Makefile: record ODT styles location as defconst in org-install {doc,etc,lisp}/Makefile: prefix all installation targets with $(DESTDIR)
24 lines
669 B
Makefile
24 lines
669 B
Makefile
ETCDIRS = styles
|
|
-include local.mk # optional local customization
|
|
|
|
.NOTPARALLEL: # always run this make serially
|
|
.SUFFIXES: # we don't need default suffix rules
|
|
ifeq ($(MAKELEVEL), 0)
|
|
$(error This make needs to be started as a sub-make from the toplevel directory.)
|
|
endif
|
|
|
|
.PHONY: all install clean cleanall clean-install
|
|
|
|
all:
|
|
|
|
install: $(ETCDIRS)
|
|
$(foreach dir, $?, if [ ! -d $(DESTDIR)$(datadir)/$(dir) ]; then $(MKDIR) $(DESTDIR)$(datadir)/$(dir); else true; fi ; $(CP) $(dir)/* $(DESTDIR)$(datadir)/$(dir); )
|
|
|
|
clean:
|
|
|
|
cleanall:
|
|
|
|
clean-install:
|
|
if [ ! -d $(DESTDIR)$(datadir) ]; then $(MKDIR) $(DESTDIR)$(datadir); else true; fi ;
|
|
$(RMR) $(DESTDIR)$(datadir)
|