debian/rules
author lbessard
Sun, 07 Sep 2008 19:23:32 +0200
changeset 257 d0a0ffbbd61c
parent 161 6af49f77fa2b
child 314 c9291298c5b8
permissions -rwxr-xr-x
Bug on connector-continuation generation fixed
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
161
6af49f77fa2b remove xmlclass in debian/rules
greg
parents: 139
diff changeset
    54
	cp -r examples Images graphics plcopen snapshots minixsv \
139
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    55
		$(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    56
	cp *.py $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    57
	chmod -R a+r $(CURDIR)/debian/plcopeneditor 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    58
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    59
	### Installing menufile
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    60
	# 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
    61
	cp debian/plcopeneditor.desktop $(CURDIR)/debian/plcopeneditor/usr/share/applications/
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    62
	cp debian/plcopeneditor.png $(CURDIR)/debian/plcopeneditor/usr/share/plcopeneditor/plcopeneditor.png
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    63
	
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    64
# Build architecture-independent files here.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    65
binary-indep: build install
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    66
# We have nothing to do by default.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    67
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    68
# Build architecture-dependent files here.
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    69
binary-arch: build install
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    70
	dh_testdir
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    71
	dh_testroot
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    72
	dh_installchangelogs 
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    73
	dh_installdocs
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    74
	dh_installexamples
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    75
#	dh_install
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    76
#	dh_installmenu
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    77
#	dh_installdebconf	
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    78
#	dh_installlogrotate
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    79
#	dh_installemacsen
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    80
#	dh_installpam
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    81
#	dh_installmime
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    82
#	dh_python
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    83
#	dh_installinit
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    84
#	dh_installcroncp sss
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    85
#	dh_installinfo
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    86
	dh_installman
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    87
	dh_link
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    88
	dh_strip
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    89
	dh_compress
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    90
	dh_fixperms
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    91
#	dh_perl
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    92
#	dh_makeshlibs
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    93
	dh_installdeb
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    94
	dh_shlibdeps
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    95
	dh_gencontrol
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    96
	dh_md5sums
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    97
	dh_builddeb
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    98
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
    99
binary: binary-indep binary-arch
c2d093402005 add debian directory to create debian binary packages
greg
parents:
diff changeset
   100
.PHONY: build clean binary-indep binary-arch binary install configure