ETCDIR = $(DESTDIR)/etc/rrqnet
MAN1DIR = $(DESTDIR)/usr/share/man/man1
MAN8DIR = $(DESTDIR)/usr/share/man/man8
+LINTIAN = $(DESTDIR)/usr/share/lintian/overrides
SBINCFILES = rrqnet
SBINFILES = rrqnet-cron $(SBINCFILES)
COMPILEOPTS = -g -W -Wall
#COMPILEOPTS = -pg -no-pie -g -DGPROF
-#STATIC = -static
+STATIC = -static
$(filter-out %.sh,$(SBINCFILES)): %: %.c
$(CC) $(COMPILEOPTS) $(STATIC) -o $@ $^ $(LDFLAGS)
INSTALLTARGETS += $(addprefix $(ETCDIR)/,$(ETCFILES))
INSTALLTARGETS += $(addprefix $(MAN1DIR)/,$(MAN1FILES))
INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
+INSTALLTARGETS += $(LINTIAN)/rrqnet
#INSTALL = install -b -S orig
INSTALL = install
+$(LINTIAN)/rrqnet: debian/lintian-overrides
+ mkdir -p ${@:/rrqnet=}
+ cp $^ $@
+
$(addprefix $(ETCDIR)/,conf.d keys):
mkdir -p $@