man: Remove manpages Makefile
Wasn't used in the build process
This commit is contained in:
parent
22af69545a
commit
669469f149
1 changed files with 0 additions and 38 deletions
38
man/Makefile
38
man/Makefile
|
@ -1,38 +0,0 @@
|
|||
.PHONY: all release update-dates update-versions clean
|
||||
|
||||
# Constant declarations
|
||||
PROGRAM_NAME = polybar
|
||||
VERSION = $(shell git describe --tags)
|
||||
DATE = $(shell date +%Y-%m-%d)
|
||||
|
||||
# Sources
|
||||
MAN_SOURCES = $(wildcard *.1)
|
||||
GZ_FILES = $(addsuffix .gz,$(MAN_SOURCES))
|
||||
# Targets
|
||||
all: $(GZ_FILES)
|
||||
release: clean update-dates update-versions
|
||||
|
||||
# Program targets
|
||||
update-versions:
|
||||
@sed -i '1 s/"$(PROGRAM_NAME) [^"]*"/"$(PROGRAM_NAME) $(VERSION)"/' $(MAN_SOURCES)
|
||||
|
||||
update-dates:
|
||||
@sed -r -i '1 s/[0-9]{4}\-[0-9]{2}\-[0-9]{2}/$(DATE)/' $(MAN_SOURCES)
|
||||
|
||||
# Documentation targets
|
||||
%.1.gz: %.1
|
||||
@echo '[GZ] $(notdir $@)'
|
||||
@gzip -c $< > $@
|
||||
|
||||
%.5.gz: %.5
|
||||
@echo '[GZ] $(notdir $@)'
|
||||
@gzip -c $< > $@
|
||||
|
||||
polybar: polybar.1
|
||||
mandoc -a $<
|
||||
|
||||
clean:
|
||||
@echo '[CLEAN]'
|
||||
@rm -f $(GZ_FILES)
|
||||
|
||||
# vim:ts=2 sw=2 noet nolist
|
Loading…
Reference in a new issue