summaryrefslogtreecommitdiff
path: root/src/roff/groff/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'src/roff/groff/Makefile.sub')
-rw-r--r--src/roff/groff/Makefile.sub12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/roff/groff/Makefile.sub b/src/roff/groff/Makefile.sub
index 9c10c28e..c862954f 100644
--- a/src/roff/groff/Makefile.sub
+++ b/src/roff/groff/Makefile.sub
@@ -42,25 +42,25 @@ MOSTLYCLEANADD=groff_opts.tmp $(GROFF_OPTS_OUTPUT)
RM=rm -f
.PHONY: all
-all: $(CCSRCS) groff_opts.tmp $(GROFF_OPTS_OUTPUT)
+all: $(srcdir)/groff.cpp groff_opts.tmp $(GROFF_OPTS_OUTPUT)
-groff_opts.tmp: $(CCSRCS)
- @$(EGREP) -e ':.*:.*:' $< \
- | sed -e 's/[ \t",]//g' > $@
+groff_opts.tmp: $(srcdir)/cpp
+ @$(GREP) -e ':.*:.*:' $< \
+ | sed -e 's/[ \t",]//g' > $@
@echo -n 'groff options: '
@cat $@
groff_opts_no_arg.txt: groff_opts.tmp
@$(RM) $@
@cat $< \
- | sed -e 's/[a-zA-Z]://g' > $@
+ | sed -e 's/[a-zA-Z]://g' > $@
@echo -n 'no arg: '
@cat $@
groff_opts_with_arg.txt: groff_opts_no_arg.txt
@$(RM) $@
@cat groff_opts.tmp \
- | sed "s/[`cat $<`:]//g" > $@
+ | sed "s/[`cat $<`:]//g" > $@
@echo -n 'with arg: '
@cat $@