forked from mirrors/org-mode
create Makefile for etc/, some additions to .gitignore
* etc/Makefile: create, activate subdir "styles" for ODT exporter * .gitignore: ignore doc/git-describe.texi and .gitattributes
This commit is contained in:
parent
1e343f7f3b
commit
0081071a52
|
@ -37,6 +37,8 @@ manual
|
|||
org_dual_license.texi
|
||||
ORGWEBPAGE/Changes.txt
|
||||
local*.mk
|
||||
doc/git-describe.texi
|
||||
.gitattributes
|
||||
|
||||
# aspell word and replacement lists
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
etcdir = $(lispdir)/etc
|
||||
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 $(etcdir)/$(dir) ]; then $(MKDIR) $(etcdir)/$(dir); else true; fi ; $(CP) $(dir)/* $(etcdir)/$(dir); )
|
||||
|
||||
clean:
|
||||
|
||||
cleanall:
|
||||
|
||||
clean-install:
|
||||
if [ ! -d $(etcdir) ]; then $(MKDIR) $(etcdir); else true; fi ;
|
||||
$(RMR) $(etcdir)
|
|
@ -4,7 +4,7 @@ DISTFILES_extra= Makefile request-assign-future.txt contrib etc
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
LISPDIRS = lisp
|
||||
SUBDIRS = doc $(LISPDIRS)
|
||||
SUBDIRS = doc etc $(LISPDIRS)
|
||||
INSTSUB = $(SUBDIRS:%=install-%)
|
||||
|
||||
GITVERSION = $(shell git describe --abbrev=6 HEAD)
|
||||
|
@ -15,7 +15,7 @@ ifneq ("$(GITSTATUS)", "")
|
|||
GITVERSION := $(GITVERSION).dirty
|
||||
endif
|
||||
|
||||
.PHONY: default all up2 update compile lisp doc \
|
||||
.PHONY: default all up2 update compile lisp doc etc \
|
||||
install info html pdf card docs $(INSTSUB) \
|
||||
autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
|
||||
|
||||
|
|
Loading…
Reference in New Issue