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

Revision 7362, 1.7 KB checked in by munepi, 9 years ago (diff)

add self-build-setup-vl.spec

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