X-Git-Url: https://git.distorted.org.uk/~mdw/xfonts-traditional/blobdiff_plain/15fc3ba19faec7f483788f208af4df66579104f9..88ca873dd3397fbdb0055230eb5dc2204766f16f:/Makefile diff --git a/Makefile b/Makefile index f447dfc..8e27113 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,27 @@ SHELL=/bin/bash +prefix?=/usr/local + +package=xfonts-traditional +utility=update-$(package) + +install=install -o 0 -g 0 + +default: all + +all: + ./mkrules $(utility).sedded + $(install) -m755 -d $(DESTDIR)$(prefix)/{bin,share/{man/man8,$(package)/rules}} + $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility) + $(install) -m755 $(utility).8 $(DESTDIR)$(prefix)/share/man/man8/. + $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/ + clean: - rm -f rules/*.rules + rm -f rules/*.rules rules/foundries rules/foundries.new rm -f good/*.bdf bad/*.bdf + rm -f *~ $(utility).sedded