source: projects/vskel/trunk/Makefile @ 8817

Revision 8817, 1.9 KB checked in by daisuke, 8 years ago (diff)

fix changelogdate, fix Makefile

Line 
1NAME=vskel
2RPMNAME=etcskel
3SPEC=etcskel-vl.spec
4VERSION=$(shell awk '/%define version/ { print $$3 }' ${SPEC})
5TAG=$(NAME)-$(VERSION)
6
7DESTDIR=
8FILES=.Xresources .bash_logout .bash_profile .bashrc \
9        .cshrc .zshrc .rpmmacros
10
11install: mkrpmdir emacs vje wnn7 gnupg ssh vine
12        install -d ${DESTDIR}/etc/skel
13        install -m 644 ${FILES} ${DESTDIR}/etc/skel
14
15vje:
16        install -d ${DESTDIR}/etc/skel/.vje
17        install -m 644 .vje/general.key ${DESTDIR}/etc/skel/.vje
18
19wnn7:
20        install -d ${DESTDIR}/etc/skel/.Wnn7
21        install -m 644 .Wnn7/{uumrc,uumkey} ${DESTDIR}/etc/skel/.Wnn7
22
23gnupg:
24        install -m 700 -d ${DESTDIR}/etc/skel/.gnupg
25
26ssh:
27        install -m 700 -d ${DESTDIR}/etc/skel/.ssh
28
29emacs:
30        install -d ${DESTDIR}/etc/skel/.emacs.d
31        install -m 664 .emacs.d/{init,emacs23-vine-default}.el ${DESTDIR}/etc/skel/.emacs.d/
32
33vine:
34        install -d ${DESTDIR}/etc/skel/.vine
35
36xemacs:
37        install -d ${DESTDIR}/etc/skel/.xemacs
38        install -m 644 .xemacs/init.el ${DESTDIR}/etc/skel/.xemacs
39
40mkrpmdir:
41        mkdir -p ${DESTDIR}/etc/skel/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
42        mkdir -p ${DESTDIR}/etc/skel/rpm/RPMS/{i386,i586,i686,athlon,noarch,arm,ppc}
43
44tag:
45        if [ ! -d ../tags/$(TAG) ] ;then \
46                svn copy ../trunk ../tags/$(TAG) ;\
47                svn commit -m "tagging as $(TAG)" ../tags/$(TAG) ;\
48                echo "Tagged as $(TAG)" ;\
49        fi
50
51targz: clean
52        cd .. && rm -rf ${NAME}-${VERSION}
53        cd .. && cp -arf trunk ${NAME}-${VERSION}
54        cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | gzip -9 > ${NAME}-${VERSION}.tar.gz
55        rm -rf ../${NAME}-${VERSION}
56
57tarbz2: clean
58        cd .. && rm -rf ${NAME}-${VERSION}
59        cd .. && cp -arf trunk ${NAME}-${VERSION}
60        cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | bzip2 -9 > ${NAME}-${VERSION}.tar.bz2
61        mkdir -p ~/rpm/SOURCES/${RPMNAME}
62        mv ../${NAME}-${VERSION}.tar.bz2 ~/rpm/SOURCES/${RPMNAME}
63        rm -rf ../${NAME}-${VERSION}
64
65srpm: tarbz2
66        rpmbuild -bs ${SPEC}
67
68rpm: tarbz2
69        rpmbuild -ba ${SPEC}
70
71clean:
72        rm -fr *~ .*???~
Note: See TracBrowser for help on using the repository browser.