.PHONY: all info clean install

DOC_INSTALL=/usr/local/man

all: netled.1.gz netled.conf.5.gz info

info: netled.1.gz netled.conf.5.gz
	gzip -l $?

clean distclean:
	rm -f *.gz

install: netled.1.gz netled.conf.5.gz
	install    -m 0644 netled.1.gz      $(DOC_INSTALL)/man1
	install    -m 0644 netled.conf.5.gz $(DOC_INSTALL)/man5

netled.1.gz: netled.1
	gzip -c9 $< > $@

netled.conf.5.gz: netled.conf.5
	gzip -c9 $< > $@
