greg@139: #!/usr/bin/make -f greg@139: # -*- makefile -*- greg@139: # Sample debian/rules that uses debhelper. greg@139: # This file was originally written by Joey Hess and Craig Small. greg@139: # As a special exception, when this file is copied by dh-make into a greg@139: # dh-make output file, you may use that output file without restriction. greg@139: # This special exception was added by Craig Small in version 0.37 of dh-make. greg@139: greg@139: # Uncomment this to turn on verbose mode. greg@139: #export DH_VERBOSE=1 greg@139: greg@139: greg@139: greg@139: greg@139: CFLAGS = -Wall -g greg@139: greg@139: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) greg@139: CFLAGS += -O0 greg@139: else greg@139: CFLAGS += -O2 greg@139: endif greg@139: greg@139: configure: configure-stamp greg@139: configure-stamp: greg@139: dh_testdir greg@139: # Add here commands to configure the package. greg@139: greg@139: touch configure-stamp greg@139: greg@139: greg@139: build: build-stamp greg@139: greg@139: build-stamp: configure-stamp greg@139: dh_testdir greg@139: touch $@ greg@139: greg@139: clean: greg@139: dh_testdir greg@139: dh_testroot greg@139: rm -f build-stamp configure-stamp greg@139: dh_clean greg@139: greg@139: install: build greg@139: dh_testdir greg@139: dh_testroot greg@139: dh_clean -k greg@139: dh_installdirs greg@139: greg@139: # Add here commands to install the package into debian/plcopeneditor. greg@139: mkdir -p $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@139: greg@139: ### Installing the data files greg@139: # should be copied to /usr/local/objdictedit greg@314: cp -r examples $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@314: cp -r Images $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@314: cp -r graphics $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@314: cp -r plcopen $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@453: cp -r locale $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@453: cp -r dialogs $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@139: cp *.py $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor greg@314: rm -rf `find .|grep CVS` greg@314: rm -rf `find .|grep .cvsignore` greg@139: chmod -R a+r $(CURDIR)/debian/plcopeneditor greg@139: greg@139: ### Installing menufile greg@139: # Now copy the file with the menu entry into /usr/share/applications. greg@139: cp debian/plcopeneditor.desktop $(CURDIR)/debian/plcopeneditor/usr/share/applications/ greg@139: greg@139: # Build architecture-independent files here. greg@139: binary-indep: build install greg@139: # We have nothing to do by default. greg@139: greg@139: # Build architecture-dependent files here. greg@139: binary-arch: build install greg@139: dh_testdir greg@139: dh_testroot greg@139: dh_installchangelogs greg@139: dh_installdocs greg@139: dh_installexamples greg@139: # dh_install greg@139: # dh_installmenu greg@139: # dh_installdebconf greg@139: # dh_installlogrotate greg@139: # dh_installemacsen greg@139: # dh_installpam greg@139: # dh_installmime greg@139: # dh_python greg@139: # dh_installinit greg@139: # dh_installcroncp sss greg@139: # dh_installinfo greg@139: dh_installman greg@139: dh_link greg@139: dh_strip greg@139: dh_compress greg@139: dh_fixperms greg@139: # dh_perl greg@139: # dh_makeshlibs greg@139: dh_installdeb greg@139: dh_shlibdeps greg@139: dh_gencontrol greg@139: dh_md5sums greg@139: dh_builddeb greg@139: greg@139: binary: binary-indep binary-arch greg@139: .PHONY: build clean binary-indep binary-arch binary install configure