Makefile
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 20 Dec 2008 17:49:25 +0200
changeset 107 817be82fdfc9
parent 103 7c16c6cab2b0
child 111 fcea9d3b79e1
permissions -rw-r--r--
Automated merge with file:///home/sasha/site/hg/dot-emacs

# 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 .emacs-my .emacs-my-pre .emacs-my-post
	for file in .emacs-my-pre .emacs-my-post; do \
		if [ ! -f $(HOME)/$$file ]; then cp $$file $(HOME)/$$file; fi; \
	done
	cp .emacs $(HOME)/.emacs
	cp .emacs-my $(HOME)/.emacs-my

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

dist-tar:
	tar cf dot-emacs.tar .emacs .emacs-my

clean:
	rm -f dot-emacs.tar