summaryrefslogtreecommitdiff
path: root/elpa/org-9.5.2/etc/Makefile
blob: ab5c98817a5b97164c057e6a1e55e8266906bf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ETCDIRS = styles schema csl
-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)
	for dir in $? ; do \
	  if [ ! -d $(DESTDIR)$(datadir)/$${dir} ] ; then \
	    $(MKDIR) $(DESTDIR)$(datadir)/$${dir} ; \
	  fi ; \
	  $(CP) $${dir}/* $(DESTDIR)$(datadir)/$${dir} ; \
	done ;

clean:

cleanall:

clean-install:	$(ETCDIRS)
	for dir in $? ; do \
	  if [ -d $(DESTDIR)$(datadir)/$${dir} ] ; then \
	    $(RMR) $(DESTDIR)$(datadir)/$${dir} ; \
	  fi ; \
	done ;