~cginternals/glraw/packaging

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Willy Scheibel
  • Date: 2016-01-27 17:08:36 UTC
  • Revision ID: willy.scheibel@cginternals.com-20160127170836-qh8us4yqka7iakcp
First commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
BUILDDIR = build
 
4
 
 
5
# firstly called by launchpad
 
6
clean:
 
7
        rm -rf $(BUILDDIR)
 
8
 
 
9
# secondly called by launchpad
 
10
build: build-arch
 
11
 
 
12
build-arch:
 
13
        mkdir $(BUILDDIR);
 
14
        cd $(BUILDDIR);cmake -DCMAKE_INSTALL_PREFIX=/usr -DOPTION_BUILD_TESTS=Off ..
 
15
        make -C $(BUILDDIR)
 
16
 
 
17
# thirdly called by launchpad
 
18
binary: binary-arch
 
19
 
 
20
binary-arch:
 
21
        cd $(BUILDDIR); make DESTDIR=../debian/tmp install
 
22
        mkdir -p debian/tmp/DEBIAN
 
23
        dpkg-gencontrol -pglraw-all
 
24
        dpkg --build debian/tmp ..
 
25
 
 
26
.PHONY: build build-arch binary binary-arch clean