]> git.tuebingen.mpg.de Git - osl.git/blobdiff - Makefile
[Makefile]: Also create bindir and mandir on install.
[osl.git] / Makefile
index df1d9f3a426581762b90c8f5931f98e7d37f7626..703238b13a35b652b57d6e6f9e3fd029f5e8ae12 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -107,7 +107,6 @@ ifeq ($(format),elf)
        LDFLAGS += --shared
 endif
 
-
 all: $(realname) $(executables) $(man_pages)
 Makefile.deps: $(wildcard *.c *.h)
        $(CC) -MM -MG *.c > $@
@@ -125,7 +124,7 @@ fsck.cmdline.o: fsck.cmdline.c fsck.cmdline.h
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(LIBCFLAGS) $<
 
 fsck.cmdline.h fsck.cmdline.c: fsck.ggo Makefile
-       gengetopt $$O \
+       gengetopt \
                --conf-parser \
                --unamed-opts=table \
                --no-handle-version \
@@ -169,12 +168,12 @@ distclean: clean
        rm -rf web/doxygen
 
 install: all
-       $(MKDIR) $(libdir) $(includedir)
+       $(MKDIR) $(libdir) $(includedir) $(mandir) $(bindir)
        $(RM) $(libdir)/$(linkername)
        $(LN) -s $(libdir)/$(soname) $(libdir)/$(linkername)
        $(INSTALL) -s -m 755 $(realname) $(libdir)
        $(INSTALL) -m 644 $(headers) $(includedir)
-       $(INSTALL) -m 644 $(executables) $(bindir)
+       $(INSTALL) -m 755 $(executables) $(bindir)
        $(INSTALL) -m 644 $(man_pages) $(mandir)
 
 .PHONY: all clean install
@@ -182,8 +181,8 @@ install: all
 web/%.1.html: %.1
        man2html $< > $@
 
-web/osl.png: web/osl.pdf
-       convert $< $@
+web/osl.png: web/osl.pdf Makefile
+       convert -scale 200x200 $< $@
 
 web/index.html: web/oslfsck.1.html web/index.html.in INSTALL README
        sed -e '/@README@/,$$d' web/index.html.in > $@