-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
24 lines (23 loc) · 1.02 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##===- makefile - KernelGen make rule for building Debian package ---------===//
##
## KernelGen -- A prototype of LLVM-based auto-parallelizing Fortran/C
## compiler for NVIDIA GPUs, targeting numerical modeling code.
##
## This file is distributed under the University of Illinois Open Source
## License. See LICENSE.TXT for details.
##
##===----------------------------------------------------------------------===//
##
## This build rule repacks Debian package from existing RPM build root.
##
##===----------------------------------------------------------------------===//
deb:
rm -rf ~/rpmbuild/BUILDROOT/kernelgen
mkdir -p ~/rpmbuild/BUILDROOT/kernelgen/DEBIAN
cp -rf control ~/rpmbuild/BUILDROOT/kernelgen/DEBIAN/
cp -rf postinst ~/rpmbuild/BUILDROOT/kernelgen/DEBIAN
chmod 0775 ~/rpmbuild/BUILDROOT/kernelgen/DEBIAN/postinst
cd ~/rpmbuild/BUILDROOT/kernelgen && \
cp -rf ../opt . && \
find . -depth -empty -type d -exec rmdir {} \; && \
cd .. && dpkg-deb --build kernelgen kernelgen-0.2-accurate.x86_64.deb