source: projects/vskel/branches/vskel-20110223/Makefile @ 1126

Revision 1126, 1.7 KB checked in by daisuke, 12 years ago (diff)

import vskel-4.1.0 from internal cvs repository

Line 
1NAME=vskel
2VERSION=$(shell awk '/%define version/ { print $$3 }' etcskel.spec)
3
4DESTDIR=
5FILES=.Xresources .bash_logout .bash_profile .bashrc \
6        .cshrc .zshrc .emacs .emacs.el .xemacs.el \
7        .rpmmacros .mew.el
8
9install: mkrpmdir liece xemacs emacs vje wnn7 gnupg vine
10        install -d ${DESTDIR}/etc/skel
11        install -m 644 ${FILES} ${DESTDIR}/etc/skel
12
13vje:
14        install -d ${DESTDIR}/etc/skel/.vje
15        install -m 644 .vje/general.key ${DESTDIR}/etc/skel/.vje
16
17wnn7:
18        install -d ${DESTDIR}/etc/skel/.Wnn7
19        install -m 644 .Wnn7/{uumrc,uumkey} ${DESTDIR}/etc/skel/.Wnn7
20
21liece:
22        install -d ${DESTDIR}/etc/skel/.liece
23        install -m 644 .liece/init.el ${DESTDIR}/etc/skel/.liece
24
25gnupg:
26        install -m 700 -d ${DESTDIR}/etc/skel/.gnupg
27
28emacs:
29        install -d ${DESTDIR}/etc/skel/lib/emacs
30
31vine:
32        install -d ${DESTDIR}/etc/skel/.vine
33
34xemacs:
35        install -d ${DESTDIR}/etc/skel/.xemacs
36        install -m 644 .xemacs/init.el ${DESTDIR}/etc/skel/.xemacs
37
38mkrpmdir:
39        mkdir -p ${DESTDIR}/etc/skel/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
40        mkdir -p ${DESTDIR}/etc/skel/rpm/RPMS/{i386,i586,i686,athlon,noarch,ppc,alpha,sparc}
41
42version:
43#        perl -p -i -e "s/^Version.*/Version: $(VERSION)/" ${NAME}.spec
44
45targz: clean version
46        cd .. && rm -rf ${NAME}-${VERSION}
47        cd .. && cp -arf ${NAME} ${NAME}-${VERSION}
48        cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | gzip -9 > ${NAME}-${VERSION}.tar.gz
49        rm -rf ${NAME}-${VERSION}
50
51tarbz2: clean version
52        cd .. && rm -rf ${NAME}-${VERSION}
53        cd .. && cp -arf ${NAME} ${NAME}-${VERSION}
54        cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | bzip2 -9 > ${NAME}-${VERSION}.tar.bz2
55        mv ../${NAME}-${VERSION}.tar.bz2 ~/rpm/SOURCES/
56        rm -rf ${NAME}-${VERSION}
57
58rpm: tarbz2
59        rpmbuild -ba etcskel.spec
60
61clean:
62        rm -fr *~ .*???~
Note: See TracBrowser for help on using the repository browser.