config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

Makefile (737B)


      1 ETCDIRS = styles schema csl
      2 -include local.mk	# optional local customization
      3 
      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 
     10 .PHONY:		all install clean cleanall clean-install
     11 
     12 all:
     13 
     14 install:	$(ETCDIRS)
     15 	for dir in $? ; do \
     16 	  if [ ! -d $(DESTDIR)$(datadir)/$${dir} ] ; then \
     17 	    $(MKDIR) $(DESTDIR)$(datadir)/$${dir} ; \
     18 	  fi ; \
     19 	  $(CP) $${dir}/* $(DESTDIR)$(datadir)/$${dir} ; \
     20 	done ;
     21 
     22 clean:
     23 
     24 cleanall:
     25 
     26 clean-install:	$(ETCDIRS)
     27 	for dir in $? ; do \
     28 	  if [ -d $(DESTDIR)$(datadir)/$${dir} ] ; then \
     29 	    $(RMR) $(DESTDIR)$(datadir)/$${dir} ; \
     30 	  fi ; \
     31 	done ;