1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/debian/rules
2018-11-13 10:16:14 -05:00

28 lines
538 B
Makefile
Executable file

#!/usr/bin/make -f
# -*- makefile -*-
%:
dh $@ --parallel
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
override_dh_auto_build:
$(MAKE) debian
override_dh_auto_test:
$(MAKE) debian-test
override_dh_auto_install:
$(MAKE) debian-install