1111# This must never include the 'hack' directory
1212export PATH := $(shell $(GO ) env GOPATH) /bin:$(PATH )
1313
14- docs : $(patsubst % .md,% ,$(wildcard * [15 ].md) )
14+ docs : $(patsubst % .md,% ,$(wildcard * [1 ].md) )
1515
1616% .1 : % .1.md
1717# ## sed is used to filter http/s links as well as relative links
@@ -24,33 +24,16 @@ docs: $(patsubst %.md,%,$(wildcard *[15].md))
2424 -e 's/\\$$/ /g' $< | \
2525 $(GOMD2MAN) -in /dev/stdin -out $@
2626
27- % .5 : % .5.md
28- # ## sed is used to filter http/s links as well as relative links
29- # ## replaces "\" at the end of a line with two spaces
30- # ## this ensures that manpages are rendered correctly
31- @$(SED) -e 's/\((podman-bootc[^)]*\.md\(# .*\)\?)\)//g' \
32- -e 's/\[\(podman-bootc[^]]*\)\]/\1/g' \
33- -e 's/\[\([^]]*\)](http[^)]\+)/\1/g' \
34- -e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' \
35- -e 's/\\$$/ /g' $< | \
36- $(GOMD2MAN) -in /dev/stdin -out $@
37-
3827.PHONY : install
3928install : docs
4029 install -d ${DESTDIR} /${MANDIR} /man1
4130 install -m 0644 podman-bootc* .1 ${DESTDIR} /${MANDIR} /man1
4231 install -m 0644 links/podman-bootc* .1 ${DESTDIR} /${MANDIR} /man1
43- install -d ${DESTDIR} /${MANDIR} /man5
44- install -m 0644 podman-bootc* .5 ${DESTDIR} /${MANDIR} /man5
45-
46- install -d ${DESTDIR}/${DATADIR}/podman-bootc
47- install -m 0644 podman-bootc.conf ${DESTDIR}/${DATADIR}/podman-bootc
48-
4932
5033.PHONY : install-tools
5134install-tools :
5235 go install github.com/cpuguy83/go-md2man@latest
5336
5437.PHONY : clean
5538clean :
56- $(RM ) -f podman-bootc* .1 podman-bootc * .5
39+ $(RM ) -f podman-bootc* .1
0 commit comments