source: projects/setup/trunk/Makefile @ 8717

Revision 8717, 559 bytes checked in by daisuke, 8 years ago (diff)

add initial version

Line 
1NAME=setup
2VERSION := $(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
3TAG=$(NAME)-$(VERSION)
4
5
6check:
7        @echo Sanity checking selected files....
8        bash -n bashrc
9        bash -n profile
10        tcsh -f csh.cshrc
11        tcsh -f csh.login
12        ./uidgidlint ./uidgid
13        ./serviceslint ./services
14
15tag-archive: check
16        @git tag -a -m "Tag as $(TAG)" -f $(TAG)
17
18create-archive:
19        @git-archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 > $(NAME)-$(VERSION).tar.bz2
20        @echo "The archive is at $(NAME)-$(VERSION).tar.bz2"
21
22archive: tag-archive create-archive
23
24clean:
25        rm -f *.bz2
Note: See TracBrowser for help on using the repository browser.