Makefile 733 B

1234567891011121314151617181920212223242526272829303132
  1. ETCDIRS = styles schema
  2. -include local.mk # optional local customization
  3. .NOTPARALLEL: # always run this make serially
  4. .SUFFIXES: # we don't need default suffix rules
  5. ifeq ($(MAKELEVEL), 0)
  6. $(error This make needs to be started as a sub-make from the toplevel directory.)
  7. endif
  8. .PHONY: all install clean cleanall clean-install
  9. all:
  10. install: $(ETCDIRS)
  11. for dir in $? ; do \
  12. if [ ! -d $(DESTDIR)$(datadir)/$${dir} ] ; then \
  13. $(MKDIR) $(DESTDIR)$(datadir)/$${dir} ; \
  14. fi ; \
  15. $(CP) $${dir}/* $(DESTDIR)$(datadir)/$${dir} ; \
  16. done ;
  17. clean:
  18. cleanall:
  19. clean-install: $(ETCDIRS)
  20. for dir in $? ; do \
  21. if [ -d $(DESTDIR)$(datadir)/$${dir} ] ; then \
  22. $(RMR) $(DESTDIR)$(datadir)/$${dir} ; \
  23. fi ; \
  24. done ;