source: projects/self-build-setup/trunk/Makefile @ 419

Revision 419, 1.5 KB checked in by munepi, 12 years ago (diff)

added self-build-setup

Line 
1NAME=self-build-setup
2VERSION=$(shell awk '/%define version/ { print $$3 }' ${NAME}.spec)
3
4LIBDIR=/usr/lib
5
6DESTDIR=
7
8all:
9        echo
10
11install:
12        install -d ${DESTDIR}/etc/apt/apt.conf.d
13        install -m 644 install-self-build.conf ${DESTDIR}/etc/apt/apt.conf.d
14        install -d ${DESTDIR}/usr/share/apt/scripts
15        install -m 755 install-self-build-rpm.lua ${DESTDIR}/usr/share/apt/scripts
16        install -d ${DESTDIR}${LIBDIR}/rpm
17        install -m 755 install-self-build-rpm.sh ${DESTDIR}${LIBDIR}/rpm
18        install -m 755 self-build-rpm.sh ${DESTDIR}${LIBDIR}/rpm
19        install -m 755 check-self-build.lua ${DESTDIR}/usr/share/apt/scripts
20        install -m 755 check-self-build.sh ${DESTDIR}${LIBDIR}/rpm
21        install -m 755 pre-allocate-rpm.sh ${DESTDIR}${LIBDIR}/rpm
22        install -m 755 get-binary-rpm.sh ${DESTDIR}${LIBDIR}/rpm
23        install -m 644 self-build.conf ${DESTDIR}/etc
24        install -d ${DESTDIR}/usr/share/locale/ja/LC_MESSAGES/
25        msgfmt -o ${DESTDIR}/usr/share/locale/ja/LC_MESSAGES/self-build-setup.mo self-build-setup-ja.po
26        install -d ${DESTDIR}/var/cache/self-build
27        install -d ${DESTDIR}/var/lib/self-build
28
29tarbz2: clean
30        cd .. && rm -rf ${NAME}-${VERSION}
31        cd .. && cp -arf trunk ${NAME}-${VERSION}
32        cd .. && tar --exclude CVS --exclude .svn -cf - ${NAME}-${VERSION} | bzip2 -9 > ${NAME}-${VERSION}.tar.bz2
33        @if [ -d ~/rpm/SOURCES/${NAME} ]; then \
34                mv ../${NAME}-${VERSION}.tar.bz2 ~/rpm/SOURCES/${NAME}; \
35        else \
36                mv ../${NAME}-${VERSION}.tar.bz2 ~/rpm/SOURCES/; \
37        fi
38        rm -rf ${NAME}-${VERSION}
39
40rpm: tarbz2
41        rpm -ba ${NAME}.spec
42
43clean:
44        rm -fr *~ .*???~
Note: See TracBrowser for help on using the repository browser.