1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 19:44:16 +02:00
xburst-tools/usbboot/debian/rules

32 lines
727 B
Plaintext
Raw Normal View History

2009-06-22 18:06:58 +03:00
#!/usr/bin/make -f
# This file is in the public domain.
# You may freely use, modify, distribute, and relicense it.
2009-06-22 18:06:58 +03:00
build clean install binary-arch binary-indep binary:
+dh --parallel $(opt_no_act) $@
2009-06-22 18:06:58 +03:00
override_dh_auto_clean:
dh_auto_clean
sh debian/clean.sh
2009-06-22 18:06:58 +03:00
override_dh_auto_configure:
AUTOMAKE="automake --foreign" autoreconf -is
dh_auto_configure -- $(opt_optimize) $(opt_quiet) LDFLAGS=-Wl,-z,defs
2009-06-22 18:06:58 +03:00
opt_optimize = CFLAGS="-g -O2"
opt_no_act =
opt_quiet =
2009-06-22 18:06:58 +03:00
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
opt_optimize = CFLAGS="-g -O0"
2009-06-22 18:06:58 +03:00
endif
ifneq (,$(findstring n,$(MAKEFLAGS)))
opt_no_act = --no-act
endif
2009-06-22 18:06:58 +03:00
ifneq (,$(filter quiet,$(DEB_BUILD_OPTIONS)))
opt_quiet = --quiet
MAKEFLAGS += --quiet
endif