INSTALL_DATA ?= $(INSTALL) -m 644
MKDIR_P := mkdir -p
VERSION := $(shell ./version-gen.sh dss version.c)
+RM := rm -f
+LSG := lopsubgen
+GROFF := groff -m man -Thtml -P -l -P -r
units := dss str file exec sig daemon df tv snap ipc dss.lsg version
objs := $(addsuffix .o, $(units))
-MMD -MF $(*F).d -MT $@ $<
%.lsg.h: %.suite
$(call SAY, LSGH $<)
- lopsubgen --gen-h=$@ < $<
+ $(LSG) --gen-h=$@ < $<
%.lsg.c: %.suite
$(call SAY, LSGC $<)
- lopsubgen --gen-c=$@ < $<
+ $(LSG) --gen-c=$@ < $<
%.1: %.suite
$(call SAY, LSGM $<)
- lopsubgen --gen-man=$@ --version-string=$(VERSION) < $<
+ $(LSG) --gen-man=$@ --version-string=$(VERSION) < $<
%.1.html: %.1
$(call SAY, GROFF $<)
- groff -m man -Thtml -P -l -P -r $< | sed -e '1,/^<body>/d; /^<\/body>/,$$d' > $@
+ $(GROFF) $< | sed -e '1,/^<body>/d; /^<\/body>/,$$d' > $@
clean:
$(call SAY, CLEAN)
- rm -f *.[od] dss dss.1 *.html dss.lsg.[ch] version.c
+ $(RM) *.[od] dss dss.1 *.html dss.lsg.[ch] version.c
ifneq ($(findstring strip, $(MAKECMDGOALS)),)
strip_option := -s