X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fmysqltcl.git;a=blobdiff_plain;f=debian%2Frules;h=1249cfd0905425b8101c07a31d495ba525717127;hp=61fb953d0e8199f4a3793a2154561b7ee4ff3ac3;hb=c905719ab07d4a621fd5e41da1a33fa28b144a56;hpb=19e3e5ae82f8f85ee94d082a2ca5de842d14032d diff --git a/debian/rules b/debian/rules index 61fb953..1249cfd 100755 --- a/debian/rules +++ b/debian/rules @@ -23,12 +23,12 @@ CONFIGURE_OPTIONS += \ LDFLAGS += -Wl,-z,defs -Wl,--as-needed -CFLAGS += -Wall -g +CFLAGS = -Wall -g -ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O2 -else +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 +else + CFLAGS += -O2 endif @@ -61,7 +61,10 @@ install: build dh_clean -k dh_installdirs - $(MAKE) install DESTDIR=$(CURDIR)/debian/mysqltcl/ + $(MAKE) install DESTDIR=$(CURDIR)/debian/mysqltcl + mkdir $(CURDIR)/debian/mysqltcl/usr/lib/tcltk + mv $(CURDIR)/debian/mysqltcl/usr/lib/mysqltcl* \ + $(CURDIR)/debian/mysqltcl/usr/lib/tcltk rm -rf \ $(CURDIR)/debian/mysqltcl/usr/share/man/mann \ $(CURDIR)/debian/mysqltcl/usr/bin \