"make deb" to build the debian package

This commit is contained in:
Pascal Brisset
2005-02-19 19:12:49 +00:00
parent 81e7cb7f3f
commit 43b4247589
4 changed files with 31 additions and 24 deletions
+3
View File
@@ -113,6 +113,9 @@ install : static t1
uninstall : uninstall :
./Makefile.pl -uninstall -destdir $(DESTDIR) ./Makefile.pl -uninstall -destdir $(DESTDIR)
deb :
dpkg-buildpackage -rfakeroot
clean: clean:
find . -name Makefile -mindepth 2 -exec sh -c '$(MAKE) -C `dirname {}` $@' \; find . -name Makefile -mindepth 2 -exec sh -c '$(MAKE) -C `dirname {}` $@' \;
find . -name '*~' -exec rm -f {} \; find . -name '*~' -exec rm -f {} \;
+2 -2
View File
@@ -1,5 +1,5 @@
paparazzi (0.9-1) unstable; urgency=low paparazzi (1.0-1) unstable; urgency=low
* Initial Release. * Initial Release.
-- Pascal Brisset <pascal.brisset@enac.fr> Fri, 28 Jan 2005 12:21:28 +0100 -- Pascal Brisset <pascal.brisset@enac.fr> Fri, 19 Feb 2005 12:21:28 +0100
-1
View File
@@ -1,2 +1 @@
paparazzi_1.0-1_i386.deb extra optional paparazzi_1.0-1_i386.deb extra optional
+26 -21
View File
@@ -10,10 +10,12 @@
#export DH_VERBOSE=1 #export DH_VERBOSE=1
CFLAGS = -Wall -g CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0 CFLAGS += -O0
else else
CFLAGS += -O2 CFLAGS += -O2
endif endif
@@ -22,14 +24,16 @@ configure: configure-stamp
configure-stamp: configure-stamp:
dh_testdir dh_testdir
# Add here commands to configure the package. # Add here commands to configure the package.
touch configure-stamp touch configure-stamp
build: build-stamp build: build-stamp
build-stamp: configure-stamp build-stamp: configure-stamp
dh_testdir dh_testdir
# Add here commands to compile the package
# Add here commands to compile the package.
# $(MAKE) # $(MAKE)
#docbook-to-man debian/paparazzi.sgml > paparazzi.1 #docbook-to-man debian/paparazzi.sgml > paparazzi.1
@@ -39,19 +43,22 @@ clean:
dh_testdir dh_testdir
dh_testroot dh_testroot
rm -f build-stamp configure-stamp rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process. # Add here commands to clean up after the build process.
# -$(MAKE) clean # -$(MAKE) clean
dh_clean
dh_clean
install: build install: build
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs
# Add here commands to install the package into debian/paparazzi. # Add here commands to install the package into debian/paparazzi.
# $(MAKE) install DESTDIR=$(CURDIR)/debian/paparazzi # $(MAKE) install DESTDIR=$(CURDIR)/debian/paparazzi
# Build architecture-independent files here. # Build architecture-independent files here.
binary-indep: build install binary-indep: build install
# We have nothing to do by default. # We have nothing to do by default.
@@ -60,27 +67,27 @@ binary-indep: build install
binary-arch: build install binary-arch: build install
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_installchangelogs dh_installchangelogs
dh_installdocs dh_installdocs
dh_installexamples dh_installexamples
# dh_install # dh_install
# dh_installmenu # dh_installmenu
# dh_installdebconf # dh_installdebconf
# dh_installlogrotate # dh_installlogrotate
# dh_installemacsen # dh_installemacsen
# dh_installpam # dh_installpam
# dh_installmime # dh_installmime
# dh_installinit # dh_installinit
# dh_installcron # dh_installcron
# dh_installinfo # dh_installinfo
dh_installman dh_installman
dh_link dh_link
dh_strip dh_strip
dh_compress dh_compress
dh_fixperms dh_fixperms
# dh_perl # dh_perl
# dh_python # dh_python
# dh_makeshlibs # dh_makeshlibs
dh_installdeb dh_installdeb
dh_shlibdeps dh_shlibdeps
dh_gencontrol dh_gencontrol
@@ -88,6 +95,4 @@ binary-arch: build install
dh_builddeb dh_builddeb
binary: binary-indep binary-arch binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure .PHONY: build clean binary-indep binary-arch binary install configure