Home | History | Annotate | Download | only in packaging
      1 #!/usr/bin/make -f
      2 
      3 # Uncomment this to turn on verbose mode.
      4 #export DH_VERBOSE=1
      5 
      6 CFLAGS = -g
      7 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
      8 CFLAGS += -O0
      9 else
     10 CFLAGS += -O2
     11 endif
     12 
     13 build: build-stamp
     14 build-stamp:
     15 	dh_testdir
     16 
     17 	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo
     18 	make all
     19 
     20 	touch build-stamp
     21 
     22 clean:
     23 	dh_testdir
     24 	dh_testroot
     25 	rm -f build-stamp
     26 
     27 	make clean || true
     28 
     29 	dh_clean
     30 
     31 install: build
     32 	dh_testdir
     33 	dh_testroot
     34 	dh_clean -k
     35 	dh_installdirs
     36 
     37 	make install DESTDIR=/usr/src/packages/BUILD/debian/libfruit
     38 
     39 # Build architecture-independent files here.
     40 binary-indep: build install
     41 	# We have nothing to do by default.
     42 
     43 # Build architecture-dependent files here.
     44 binary-arch: build install
     45 	dh_testdir
     46 	dh_testroot
     47 #	dh_installdebconf
     48 	dh_installdocs
     49 	dh_installexamples
     50 	dh_installmenu
     51 #	dh_installlogrotate
     52 #	dh_installemacsen
     53 #	dh_installpam
     54 #	dh_installmime
     55 #	dh_installinit
     56 	dh_installcron
     57 	dh_installman
     58 	dh_installinfo
     59 #	dh_undocumented
     60 	dh_installchangelogs
     61 	dh_link
     62 	dh_strip
     63 	dh_compress
     64 	dh_fixperms
     65 #	dh_makeshlibs
     66 	dh_installdeb
     67 #	dh_perl
     68 	dh_shlibdeps
     69 	dh_gencontrol
     70 	dh_md5sums
     71 	dh_builddeb
     72 
     73 binary: binary-indep binary-arch
     74 .PHONY: build clean binary-indep binary-arch binary install