0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-15 22:16:27 +00:00
org-mode/etc/Makefile
Achim Gratz b323d9e5c3 move schema files to etc/ and modify makefile to install them into $(datadir)
etc/Makefile: add "schema" to $(ETCDIRS)

	contrib/odt/etc/schema/od-manifest-schema-v1.2-cs01.rnc: move to etc/schema/od-manifest-schema-v1.2-cs01.rnc

	contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc: move to etc/schema/od-schema-v1.2-cs01.rn

	contrib/odt/etc/schema/schemas.xml: move to etc/schema/schemas.xml
2012-04-20 21:04:12 +02:00

32 lines
733 B
Makefile

ETCDIRS = styles schema
-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 ;