2011-12-16 09:33:45 +00:00
|
|
|
ETCDIRS = styles
|
|
|
|
-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)
|
2012-01-02 19:07:04 +00:00
|
|
|
$(foreach dir, $?, if [ ! -d $(DESTDIR)$(datadir)/$(dir) ]; then $(MKDIR) $(DESTDIR)$(datadir)/$(dir); else true; fi ; $(CP) $(dir)/* $(DESTDIR)$(datadir)/$(dir); )
|
2011-12-16 09:33:45 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
cleanall:
|
|
|
|
|
|
|
|
clean-install:
|
2012-01-02 19:07:04 +00:00
|
|
|
if [ ! -d $(DESTDIR)$(datadir) ]; then $(MKDIR) $(DESTDIR)$(datadir); else true; fi ;
|
|
|
|
$(RMR) $(DESTDIR)$(datadir)
|