debian/rules
author laurent
Sat, 31 Mar 2012 13:16:44 +0200
changeset 663 6ea5c76ea7bc
parent 453 d01e025b868d
permissions -rwxr-xr-x
Fix bug with DurationCellEditor value not saved when modified
139
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     1
#!/usr/bin/make -f
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     2
# -*- makefile -*-
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     3
# Sample debian/rules that uses debhelper.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     4
# This file was originally written by Joey Hess and Craig Small.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     5
# As a special exception, when this file is copied by dh-make into a
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     6
# dh-make output file, you may use that output file without restriction.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     7
# This special exception was added by Craig Small in version 0.37 of dh-make.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     8
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
     9
# Uncomment this to turn on verbose mode.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    10
#export DH_VERBOSE=1
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    11
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    12
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    13
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    14
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    15
CFLAGS = -Wall -g
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    16
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    18
	CFLAGS += -O0
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    19
else
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    20
	CFLAGS += -O2
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    21
endif
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    22
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    23
configure: configure-stamp
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    24
configure-stamp:
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    25
	dh_testdir
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    26
	# Add here commands to configure the package.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    27
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    28
	touch configure-stamp
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    29
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    30
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    31
build: build-stamp
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    32
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    33
build-stamp: configure-stamp 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    34
	dh_testdir
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    35
	touch $@
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    36
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    37
clean:
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    38
	dh_testdir
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    39
	dh_testroot
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    40
	rm -f build-stamp configure-stamp
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    41
	dh_clean 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    42
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    43
install: build
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    44
	dh_testdir
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    45
	dh_testroot
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    46
	dh_clean -k 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    47
	dh_installdirs
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    48
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    49
	# Add here commands to install the package into debian/plcopeneditor.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    50
	mkdir -p $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor	
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    51
	
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    52
	### Installing the data files
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    53
	# should be copied to /usr/local/objdictedit
314
c9291298c5b8 updated : debian package scripts
greg
parents: 161
diff changeset
    54
	cp -r examples $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
c9291298c5b8 updated : debian package scripts
greg
parents: 161
diff changeset
    55
	cp -r Images $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
c9291298c5b8 updated : debian package scripts
greg
parents: 161
diff changeset
    56
	cp -r graphics $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
c9291298c5b8 updated : debian package scripts
greg
parents: 161
diff changeset
    57
	cp -r plcopen $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
453
d01e025b868d (no commit message)
greg
parents: 314
diff changeset
    58
	cp -r locale $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
d01e025b868d (no commit message)
greg
parents: 314
diff changeset
    59
	cp -r dialogs $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
139
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    60
	cp *.py $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
314
c9291298c5b8 updated : debian package scripts
greg
parents: 161
diff changeset
    61
	rm -rf `find .|grep CVS`
c9291298c5b8 updated : debian package scripts
greg
parents: 161
diff changeset
    62
	rm -rf `find .|grep .cvsignore`
139
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    63
	chmod -R a+r $(CURDIR)/debian/plcopeneditor 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    64
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    65
	### Installing menufile
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    66
	# Now copy the file with the menu entry into /usr/share/applications.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    67
	cp debian/plcopeneditor.desktop $(CURDIR)/debian/plcopeneditor/usr/share/applications/
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    68
	
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    69
# Build architecture-independent files here.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    70
binary-indep: build install
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    71
# We have nothing to do by default.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    72
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    73
# Build architecture-dependent files here.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    74
binary-arch: build install
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    75
	dh_testdir
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    76
	dh_testroot
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    77
	dh_installchangelogs 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    78
	dh_installdocs
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    79
	dh_installexamples
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    80
#	dh_install
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    81
#	dh_installmenu
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    82
#	dh_installdebconf	
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    83
#	dh_installlogrotate
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    84
#	dh_installemacsen
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    85
#	dh_installpam
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    86
#	dh_installmime
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    87
#	dh_python
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    88
#	dh_installinit
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    89
#	dh_installcroncp sss
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    90
#	dh_installinfo
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    91
	dh_installman
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    92
	dh_link
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    93
	dh_strip
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    94
	dh_compress
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    95
	dh_fixperms
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    96
#	dh_perl
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    97
#	dh_makeshlibs
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    98
	dh_installdeb
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    99
	dh_shlibdeps
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   100
	dh_gencontrol
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   101
	dh_md5sums
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   102
	dh_builddeb
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   103
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   104
binary: binary-indep binary-arch
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   105
.PHONY: build clean binary-indep binary-arch binary install configure