Makefile 669 B

1234567891011121314151617181920212223
  1. ETCDIRS = styles
  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. $(foreach dir, $?, if [ ! -d $(DESTDIR)$(datadir)/$(dir) ]; then $(MKDIR) $(DESTDIR)$(datadir)/$(dir); else true; fi ; $(CP) $(dir)/* $(DESTDIR)$(datadir)/$(dir); )
  12. clean:
  13. cleanall:
  14. clean-install:
  15. if [ ! -d $(DESTDIR)$(datadir) ]; then $(MKDIR) $(DESTDIR)$(datadir); else true; fi ;
  16. $(RMR) $(DESTDIR)$(datadir)