greg@91: #!/usr/bin/make -f greg@91: # -*- makefile -*- greg@91: greg@91: # Uncomment this to turn on verbose mode. greg@91: #export DH_VERBOSE=1 greg@91: greg@91: CFLAGS = -Wall -g greg@91: greg@91: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) greg@91: CFLAGS += -O0 greg@91: else greg@91: CFLAGS += -O2 greg@91: endif greg@91: greg@91: configure: configure-stamp greg@91: configure-stamp: greg@91: dh_testdir greg@91: touch configure-stamp greg@91: greg@91: greg@91: build: build-stamp greg@91: greg@91: build-stamp: configure-stamp greg@91: dh_testdir greg@91: touch $@ greg@91: greg@91: clean: greg@91: dh_testdir greg@91: dh_testroot greg@91: rm -f build-stamp configure-stamp greg@91: dh_clean greg@91: greg@91: install: build greg@91: dh_testdir greg@91: dh_testroot greg@91: dh_clean -k greg@91: dh_installdirs greg@91: greg@432: # Copy source files greg@91: mkdir -p $(CURDIR)/debian/beremiz/usr/share/beremiz greg@91: cp -a images $(CURDIR)/debian/beremiz/usr/share/beremiz greg@91: cp -a plugins $(CURDIR)/debian/beremiz/usr/share/beremiz greg@91: cp -a runtime $(CURDIR)/debian/beremiz/usr/share/beremiz greg@318: cp -a tests $(CURDIR)/debian/beremiz/usr/share/beremiz greg@318: cp -a connectors $(CURDIR)/debian/beremiz/usr/share/beremiz greg@318: cp -a targets $(CURDIR)/debian/beremiz/usr/share/beremiz greg@432: cp -a doc $(CURDIR)/debian/beremiz/usr/share/beremiz greg@432: cp -a locale $(CURDIR)/debian/beremiz/usr/share/beremiz greg@432: cp *.js $(CURDIR)/debian/beremiz/usr/share/beremiz greg@91: cp *.py $(CURDIR)/debian/beremiz/usr/share/beremiz greg@91: greg@432: # Copy desktop directory file greg@432: mkdir -p $(CURDIR)/debian/beremiz/usr/share/desktop-directories greg@432: cp debian/Beremiz.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories greg@432: cp debian/Beremiz_demos.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories greg@432: cp debian/Beremiz_docs.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories greg@432: greg@432: # Copy desktop menu file greg@432: mkdir -p $(CURDIR)/debian/beremiz/etc/xdg/menus/applications-merged greg@432: cp debian/beremiz.menu $(CURDIR)/debian/beremiz/etc/xdg/menus/applications-merged greg@432: greg@432: # Copy desktop entry files greg@432: mkdir -p $(CURDIR)/debian/beremiz/usr/share/applications greg@432: cp debian/beremiz.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ greg@432: cp debian/beremiz_svgui.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ greg@432: cp debian/beremiz_wxglade.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ greg@432: cp debian/beremiz_doc.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ greg@432: greg@318: rm -rf `find .|grep CVS` greg@318: rm -rf `find .|grep .cvsignore` greg@91: chmod -R a+r $(CURDIR)/debian/beremiz greg@91: greg@91: # Build architecture-independent files here. greg@91: binary-indep: build install greg@91: greg@91: # Build architecture-dependent files here. greg@91: binary-arch: build install greg@91: dh_testdir greg@91: dh_testroot greg@432: # dh_installchangelogs greg@432: # dh_installdocs greg@91: dh_installexamples greg@91: # dh_install greg@91: # dh_installmenu greg@91: # dh_installdebconf greg@91: # dh_installlogrotate greg@91: # dh_installemacsen greg@91: # dh_installpam greg@91: # dh_installmime greg@91: # dh_python greg@91: # dh_installinit greg@91: # dh_installcron greg@91: # dh_installinfo greg@91: dh_installman greg@91: dh_link greg@91: dh_strip greg@91: dh_compress greg@91: dh_fixperms greg@91: # dh_perl greg@91: # dh_makeshlibs greg@91: dh_installdeb greg@318: # dh_shlibdeps greg@91: dh_gencontrol greg@91: dh_md5sums greg@92: dh_builddeb greg@91: greg@91: binary: binary-indep binary-arch greg@91: .PHONY: build clean binary-indep binary-arch binary install configure