summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0934ade)
Run gzip with -n to make the build reproducible.
VERSION := $(shell ./version-gen.sh dss version.c)
RM := rm -f
LSG := lopsubgen
VERSION := $(shell ./version-gen.sh dss version.c)
RM := rm -f
LSG := lopsubgen
units := dss str file exec sig daemon df tv snap ipc dss.lsg version
objs := $(addsuffix .o, $(units))
deps := $(addsuffix .d, $(units))
units := dss str file exec sig daemon df tv snap ipc dss.lsg version
objs := $(addsuffix .o, $(units))
deps := $(addsuffix .d, $(units))
man: dss.1
$(objs): dss.lsg.h Makefile
-include $(deps)
man: dss.1
$(objs): dss.lsg.h Makefile
-include $(deps)
%.lsg.c: %.suite
$(call SAY, LSGC $<)
$(LSG) --gen-c=$@ < $<
%.lsg.c: %.suite
$(call SAY, LSGC $<)
$(LSG) --gen-c=$@ < $<
- $(LSG) --gen-man=$@ --version-string=$(VERSION) < $<
-%.1.html: %.1
+ $(LSG) --gen-man=${@:.gz=} --version-string=$(VERSION) < $<
+ $(GZIP) ${@:.gz=}
+%.1.html: %.1.gz
- groff -m man -Thtml -P -l -P -r $< | sed -e '1,/^<body>/d; /^<\/body>/,$$d' > $@
-
+ zcat $< | groff -m man -Thtml -P -l -P -r \
+ | sed -e '1,/^<body>/d; /^<\/body>/,$$d' > $@
clean:
$(call SAY, CLEAM)
clean:
$(call SAY, CLEAM)
- $(RM) *.[od] dss dss.1 *.html dss.lsg.[ch] version.c
+ $(RM) *.[od] dss dss.1.gz *.html dss.lsg.[ch] version.c
ifneq ($(findstring strip, $(MAKECMDGOALS)),)
strip_option := -s
ifneq ($(findstring strip, $(MAKECMDGOALS)),)
strip_option := -s
install install-strip: all
$(MKDIR_P) $(bindir) $(mandir)
$(INSTALL_PROGRAM) $(strip_option) dss $(bindir)
install install-strip: all
$(MKDIR_P) $(bindir) $(mandir)
$(INSTALL_PROGRAM) $(strip_option) dss $(bindir)
- $(INSTALL_DATA) dss.1 $(mandir)
+ $(INSTALL_DATA) dss.1.gz $(mandir)
index.html: dss.1.html index.html.in INSTALL README NEWS
sed -e '/@README@/,$$d' index.html.in > $@
index.html: dss.1.html index.html.in INSTALL README NEWS
sed -e '/@README@/,$$d' index.html.in > $@