Makefile - dotfiles - These are my dotfiles. There are many like it, but these are mine.
 (HTM) git clone git://jay.scot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       Makefile (727B)
       ---
            1 REPOSITORY = http://git.suckless.org/dwm
            2 SRC_DIR = src
            3 PINNED_REVISION = HEAD
            4 PATCH_DIR = patches
            5 
            6 all: $(SRC_DIR)
            7 
            8 clean: reset
            9         @if test -d $(SRC_DIR); then \
           10                 cd $(SRC_DIR); \
           11                 $(MAKE) -s clean; \
           12                 git clean -f; \
           13         fi
           14 
           15 $(SRC_DIR): clone reset patch
           16         @cp config.h $@
           17         @cd $@ && $(MAKE) -s
           18 
           19 reset:
           20         @if [ -n "$(strip $(PINNED_REVISION))" ]; then \
           21                 cd $(SRC_DIR) && git reset --hard $(PINNED_REVISION); \
           22         fi
           23 
           24 patch: $(PATCH_DIR)/*
           25         @for file in $^ ; do \
           26                 patch -d "${SRC_DIR}" < $${file}; \
           27         done
           28 
           29 clone:
           30         @if ! test -d $(SRC_DIR); then \
           31                 git clone $(REPOSITORY) $(SRC_DIR); \
           32         fi
           33 
           34 update: clean
           35         @cd $(SRC_DIR) && git pull
           36 
           37 install:
           38         $(MAKE) -C "${SRC_DIR}" -s install
           39 
           40 
           41 .PHONY: all clean update install reset clone