Changeset 121 in Main for trunk/Makefile


Ignore:
Timestamp:
Sep 21, 2024, 7:39:17 PM (8 weeks ago)
Author:
Nishi
Message:

add install target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r80 r121  
    2828        $(MAKE) -C $@ $(FLAGS)
    2929
     30install: all
     31        mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc
     32        if [ ! -e $(PREFIX)/etc/tewi.conf ]; then cp example.conf $(PREFIX)/etc/tewi.conf ; fi
     33        cp ./Server/tewi $(PREFIX)/bin/
     34        cp ./Module/*.so $(PREFIX)/lib/tewi/
     35        cp ./Manpage/tewi.conf.5 $(PREFIX)/share/man/man5/
     36
    3037format:
    3138        clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
Note: See TracChangeset for help on using the changeset viewer.