scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1.POSIX:
 2
 3PROJECTDIR = ../..
 4include $(PROJECTDIR)/scripts/rules.mk
 5
 6PAGES =\
 7	scc-ir.7\
 8
 9.SUFFIXES: .man
10
11NODEP = 1
12
13all: $(PAGES)
14
15.man.7:
16	trap 'rm -f $tmp' EXIT;\
17	trap 'exit 1' HUP INT TERM;\
18	tmp=$$$$.tmp;\
19	sed '/\.TH/ s/VERSION/$(VERSION)/' $< > $$tmp &&\
20	mv $$tmp $@
21	cp $@ $(MANDIR)/man7/
22
23clean:
24	rm -f *.7