summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2516bd767e4e6aafd36cd48212986da65b0f2d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
NAME = rootfiles
VERSION = 11.0
DOTFILES = Xdefaults bash_logout bash_profile bashrc bash_completion cshrc tcshrc vimrc
DOC = ChangeLog
BUILDFILES = Makefile
DESTDIR =

all:
	@echo "Use make install"

install:
	install -m700 -d $(DESTDIR)/root
	for i in $(DOTFILES) ; do cp -ar $$i $(DESTDIR)/root/.$$i ; done
	install -d -m700 $(DESTDIR)/root/tmp

dis: clean changelog
	rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
	mkdir -p $(NAME)-$(VERSION)
	cp $(DOC) $(DOTFILES) $(BUILDFILES) $(NAME)-$(VERSION)/
	tar cfa $(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION)
	rm -rf $(NAME)-$(VERSION)

clean:
	rm -f *~

changelog:
	svn2cl -o ChangeLog || :
	rm -f ChangeLog.bak