Makefile
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 29 Jun 2008 22:39:37 -0400
changeset 44 19b74f7cd49a
parent 43 7c9cd891400b
child 45 d16182a9e7de
permissions -rw-r--r--
by default target `install' only update ".emacs-my".

# Copyright (C) 2008 by Oleksandr Gavenko <gavenkoa@gmail.com>

ifeq '' '$(HOME)'
  $(error Home env var not set!)
endif

.PHONY: all install install-all

all: install

install: .emacs-my
	for file in $^; do \
        cp $$file $(HOME)/$$file; \
    done

install-all: .emacs .emacs-my
	for file in $^; do \
        cp $$file $(HOME)/$$file; \
    done