root/trunk/rpmsrc/Makefile

Revision 604, 305 bytes (checked in by andrei, 4 years ago)

Added RMP generator by Cristi Vlasceanu

Line 
1 ifeq (,$(VER))
2     $(error You must define VER, for example: `sudo make VER=2.100`)
3 endif
4
5 all: pkg
6
7 MY_WORK_DIR=$(shell pwd)
8 export MY_WORK_DIR
9
10 pkg:
11     @./prep.sh
12     @./mkspec.sh $(VER) > /usr/src/rpm/SPECS/dmd.spec
13     cp dmd.$(VER).zip /usr/src/rpm/SOURCES
14     cd /usr/src/rpm && rpmbuild -bb -v SPECS/dmd.spec
Note: See TracBrowser for help on using the browser.