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

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

1.0.2

Line 
1NAME=self-build-setup
2VERSION=$(shell awk '/%define version/ { print $$3 }' ${NAME}-vl.spec)
3
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
10LIBDIR=/usr/lib
11
12DESTDIR=
13
14all:
15        @echo TODO: make *.in
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
35tarxz: clean
36        cd .. && rm -rf ${NAME}-${VERSION}
37        cd .. && cp -arf trunk ${NAME}-${VERSION}
38        cd .. && tar --exclude CVS --exclude .svn -cf - ${NAME}-${VERSION} | xz -9 > ${NAME}-${VERSION}.tar.xz
39        @if [ -d ~/rpm/SOURCES/${NAME} ]; then \
40                mv ../${NAME}-${VERSION}.tar.xz ~/rpm/SOURCES/${NAME}; \
41        else \
42                mv ../${NAME}-${VERSION}.tar.xz ~/rpm/SOURCES/; \
43        fi
44        rm -rf ${NAME}-${VERSION}
45
46rpm: tarxz
47        rpm -ba ${NAME}-vl.spec
48
49clean:
50        rm -fr *~ .*???~
Note: See TracBrowser for help on using the repository browser.