Makefile (596B)
1 # See LICENSE file for copyright and license details 2 3 include config.mk 4 5 all: morph docs 6 7 docs: morph.1 8 9 morph: morph.c 10 $(CC) $(CFLAGS) morph.c -o morph $(LDFLAGS) 11 12 morph.1: morph.1.in 13 sed 's/VERSION/$(VERSION)/g' < morph.1.in > morph.1 14 15 clean: 16 -rm morph morph.1 17 18 install: all 19 install -d $(DESTDIR)$(PREFIX)/bin/ $(DESTDIR)$(MANPREFIX)/man1 20 install -s -m 755 morph $(DESTDIR)$(PREFIX)/bin/morph 21 install -m 644 morph.1 $(DESTDIR)$(MANPREFIX)/man1/morph.1 22 23 uninstall: 24 -rm -f $(DESTDIR)$(PREFIX)/bin/morph 25 -rm -f $(DESTDIR)$(MANPREFIX)/man1/morph.1 26 27 .PHONY: all docs clean install uninstall