summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6ace581a2ef0a47f1d9a82d1a93fe3a12c9b8eda (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
29
30
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
	install -d $(DESTDIR)/root/.netscape/{cache,archive}

dis: clean changelog
	rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
	mkdir -p $(NAME)-$(VERSION)
	cp $(DOC) $(DOTFILES) $(BUILDFILES) $(NAME)-$(VERSION)/
	tar cf $(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
	bzip2 -9f $(NAME)-$(VERSION).tar
	rm -rf $(NAME)-$(VERSION)

clean:
	rm -f *~

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