Browse Source

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
Achim Gratz 12 years ago
parent
commit
0081071a52
3 changed files with 28 additions and 2 deletions
  1. 2 0
      .gitignore
  2. 24 0
      etc/Makefile
  3. 2 2
      targets.mk

+ 2 - 0
.gitignore

@@ -37,6 +37,8 @@ manual
 org_dual_license.texi
 ORGWEBPAGE/Changes.txt
 local*.mk
+doc/git-describe.texi
+.gitattributes
 
 # aspell word and replacement lists
 

+ 24 - 0
etc/Makefile

@@ -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)

+ 2 - 2
targets.mk

@@ -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