Ticket #66383: Makefile.patch

File Makefile.patch, 1.2 KB (added by artkiver (グレェ), 2 years ago)

Added some $(DESTDIR) parameters as suggested by Eric Borisch @eborisch@… which seems to have done the trick to get install functioning!

  • Makefile

    old new  
    11PREFIX=/usr/local
    22PREFIX_MAN=$(PREFIX)/man
    3 CFLAGS=-g -Wall
    4 
     3DESTDIR         ?=
     4CFLAGS=-g -Wall -D st_mtim=st_mtimespec
    55all: snac
    66
    77snac: snac.o main.o data.o http.o httpd.o webfinger.o \
     
    1818        $(CC) -I/usr/local/include -MM *.c > makefile.depend
    1919
    2020install:
    21         install -m 755 snac $(PREFIX)/bin/snac
    22         mkdir -p -m 755 $(PREFIX_MAN)/man1
    23         install -m 644 doc/snac.1 $(PREFIX_MAN)/man1/snac.1
    24         mkdir -p -m 755 $(PREFIX_MAN)/man5
    25         install -m 644 doc/snac.5 $(PREFIX_MAN)/man5/snac.5
    26         mkdir -p -m 755 $(PREFIX_MAN)/man8
    27         install -m 644 doc/snac.8 $(PREFIX_MAN)/man8/snac.8
     21        install -m 755 snac $(DESTDIR)$(PREFIX)/bin/snac
     22        mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man1
     23        install -m 644 doc/snac.1 $(DESTDIR)$(PREFIX_MAN)/man1/snac.1
     24        mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man5
     25        install -m 644 doc/snac.5 $(DESTDIR)$(PREFIX_MAN)/man5/snac.5
     26        mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man8
     27        install -m 644 doc/snac.8 $(DESTDIR)$(PREFIX_MAN)/man8/snac.8
    2828
    2929activitypub.o: activitypub.c xs.h xs_encdec.h xs_json.h xs_curl.h \
    3030 xs_mime.h xs_openssl.h xs_regex.h xs_time.h snac.h