1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/usr/bin/make -f
# -*- makefile -*-
# Build rules for melting. you can use this file without restriction.
# This has to be exported to make some magic below work.
export DH_OPTIONS
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
include /usr/share/quilt/quilt.make
configure: configure-stamp
configure-stamp:
dh_testdir
cp makefile.unices Makefile
touch $@
build: patch configure build-stamp
build-stamp:
$(MAKE) NNDIR=/usr/share/melting/NNFILES
touch $@
clean: unpatch
dh_testdir
dh_testroot
$(RM) melting.o decode.o calcul.o melting
dh_clean build-arch-stamp build-indep-stamp configure-stamp Makefile
install: install-indep install-arch
install-indep:
dh_testdir
dh_testroot
dh_prep -i
dh_installdirs -i
dh_install -i
install -D BIN/tkmelting.pl $(CURDIR)/debian/melting-gui/usr/bin/tkmelting
install -m 644 -D BIN/melting.hlp $(CURDIR)/debian/melting-gui/usr/share/melting/melting.hlp
install -m 644 -D melting-gui.desktop $(CURDIR)/debian/melting-gui/usr/share/applications/melting-gui.desktop
install-arch:
dh_testdir
dh_testroot
dh_prep -s
dh_installdirs -s
# install melting $(CURDIR)/debian/melting/usr/bin
dh_install -s
binary: binary-arch binary-indep
binary-indep: build install
dh binary-indep
binary-arch: build install-arch
dh binary-arch
# This is useful to download the orig.gz sources before running svn-buildpackage
tarballs:
[ -d ../tarballs ] || mkdir ../tarballs
uscan --force-download
mv ../melt* ../tarballs
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
|