chiark / gitweb /
Makefile: Make sure the `rules' directory exists.
[xfonts-traditional.git] / Makefile
index 75c9eb8c2d2f519e530d8751a97a2081e5b80c18..1056107e3716ea28b814d179cd86ea96db78152b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,9 @@ install=install -o 0 -g 0
 default: all
 
 all:
+       mkdir -p rules/
        ./mkrules <specs
+       cp manual/*.rules rules/
 
 install:
        perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
@@ -21,5 +23,6 @@ install:
        $(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