source: projects/vskel/tags/vskel-6.0/Makefile @ 4036

Revision 4036, 1.6 KB checked in by daisuke, 11 years ago (diff)

update Makefile

Line 
1NAME=vskel
2SPEC=etcskel-vl.spec
3VERSION=$(shell awk '/%define version/ { print $$3 }' ${SPEC})
4
5DESTDIR=
6FILES=.Xresources .bash_logout .bash_profile .bashrc \
7        .cshrc .zshrc .rpmmacros
8
9install: mkrpmdir emacs vje wnn7 gnupg ssh 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
21gnupg:
22        install -m 700 -d ${DESTDIR}/etc/skel/.gnupg
23
24ssh:
25        install -m 700 -d ${DESTDIR}/etc/skel/.ssh
26
27emacs:
28        install -d ${DESTDIR}/etc/skel/.emacs.d
29        install -m 664 .emacs.d/{init,emacs23-vine-default}.el ${DESTDIR}/etc/skel/.emacs.d/
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,arm,ppc}
41
42targz: clean version
43        cd .. && rm -rf ${NAME}-${VERSION}
44        cd .. && cp -arf ${NAME} ${NAME}-${VERSION}
45        cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | gzip -9 > ${NAME}-${VERSION}.tar.gz
46        rm -rf ${NAME}-${VERSION}
47
48tarbz2: clean version
49        cd .. && rm -rf ${NAME}-${VERSION}
50        cd .. && cp -arf ${NAME} ${NAME}-${VERSION}
51        cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | bzip2 -9 > ${NAME}-${VERSION}.tar.bz2
52        mv ../${NAME}-${VERSION}.tar.bz2 ~/rpm/SOURCES/
53        rm -rf ${NAME}-${VERSION}
54
55srpm: tarbz2
56        rpmbuild -bs ${SPEC}
57
58rpm: tarbz2
59        rpmbuild -ba ${SPEC}
60
61clean:
62        rm -fr *~ .*???~
Note: See TracBrowser for help on using the repository browser.