Makefile 627 B

123456789101112131415161718192021222324
  1. etcdir = $(lispdir)/etc
  2. ETCDIRS = styles
  3. -include local.mk # optional local customization
  4. .NOTPARALLEL: # always run this make serially
  5. .SUFFIXES: # we don't need default suffix rules
  6. ifeq ($(MAKELEVEL), 0)
  7. $(error This make needs to be started as a sub-make from the toplevel directory.)
  8. endif
  9. .PHONY: all install clean cleanall clean-install
  10. all:
  11. install: $(ETCDIRS)
  12. $(foreach dir, $?, if [ ! -d $(etcdir)/$(dir) ]; then $(MKDIR) $(etcdir)/$(dir); else true; fi ; $(CP) $(dir)/* $(etcdir)/$(dir); )
  13. clean:
  14. cleanall:
  15. clean-install:
  16. if [ ! -d $(etcdir) ]; then $(MKDIR) $(etcdir); else true; fi ;
  17. $(RMR) $(etcdir)