[go: up one dir, main page]

Menu

[b8d1a6]: / debian / rules  Maximize  Restore  History

Download this file

46 lines (35 with data), 1.5 kB

#!/usr/bin/make -f

# Split this up a bit to avoid long lines
CONFIGURE_GDA_PATH = /usr/share/gnome-control-center/default-apps
CONFIGURE_GDA = --with-gnome-default-applications=$(CONFIGURE_GDA_PATH)
CONFIGURE_LDFLAGS = LDFLAGS=-Wl,--as-needed
CONFIGURE_DIRS = TOP_DIR=../.. PREFIX=/usr
CONFIGURE_COMMON = $(CONFIGURE_GDA) $(CONFIGURE_LDFLAGS) $(CONFIGURE_DIRS)

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
CONFIGURE_COMMON += --parallel=$(NUMJOBS)
endif

%:
	dh $@

override_dh_auto_configure:
	python mscript.py configure $(CONFIGURE_COMMON) \
		--build-dir=debian/build-gtk2 --disable-gtk3
	python mscript.py configure $(CONFIGURE_COMMON) \
		--build-dir=debian/build-gtk3 --enable-gtk3

override_dh_auto_build:
	python mscript.py build --build-dir=debian/build-gtk2
	python mscript.py build --build-dir=debian/build-gtk3

override_dh_auto_install:
	python mscript.py install --build-dir=debian/build-gtk3 --destdir=../tmp

override_dh_install:
	dh_install
	install -d debian/roxterm-gtk2/usr/bin
	libtool --mode=install install debian/build-gtk2/roxterm \
		debian/build-gtk2/roxterm-config \
		`pwd`/debian/roxterm-gtk2/usr/bin
	dh_install -proxterm-common debian/roxterm.xpm usr/share/pixmaps/

override_dh_auto_test:

override_dh_auto_clean:
	python mscript.py clean --build-dir=debian/build-gtk2
	rm -rf debian/build-gtk2 debian/build-gtk3
	rm -f maitch.py[co]