Changeset 128 in Main for trunk/Makefile


Ignore:
Timestamp:
Sep 23, 2024, 7:19:19 PM (8 weeks ago)
Author:
Nishi
Message:

release 1.04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r121 r128  
    1111.PHONY: all format clean ./Server ./Common ./Module ./Manpage get-version
    1212
    13 all: ./Server ./Module ./Manpage
     13all: ./Server ./Module ./Manpage ./Tool/genconf ./Tool/itworks
    1414
    15 ./Server/option: ./Server/option.c
    16         cc -o $@ ./Server/option.c
     15./Tool/option: ./Tool/option.c
     16        cc -o $@ ./Tool/option.c
    1717
    18 ./Server:: ./Common ./Server/option
    19         $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Server/option objs ../`" EXTLIBS="`./Server/option libs ../`" EXTCFLAGS="`./Server/option cflags ../`" EXTLDFLAGS="`./Server/option ldflags ../`"
     18./Tool/genconf: ./Tool/genconf.c
     19        cc -o $@ ./Tool/genconf.c
     20
     21./Server:: ./Common ./Tool/option
     22        $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../`" EXTLIBS="`./Tool/option libs ../`" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`"
    2023
    2124./Module:: ./Common
     
    2831        $(MAKE) -C $@ $(FLAGS)
    2932
    30 install: 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
     33install: all ./Tool/genconf ./Tool/itworks
     34        mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc $(PREFIX)/www
     35        if [ ! -e $(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) > $(PREFIX)/etc/tewi.conf || ( rm $(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
     36        if [ ! -e $(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(PREFIX)/www/index.html || ( rm $(PREFIX)/www/index.html ; exit 1 ) ) ; fi
     37        if [ ! -e $(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(PREFIX)/www/ || ( rm $(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
    3338        cp ./Server/tewi $(PREFIX)/bin/
    3439        cp ./Module/*.so $(PREFIX)/lib/tewi/
     
    4651        $(MAKE) -C ./Common $(FLAGS) clean
    4752        $(MAKE) -C ./Manpage $(FLAGS) clean
    48         rm -f ./Server/option
     53        rm -f ./Tool/option ./Tool/genconf
Note: See TracChangeset for help on using the changeset viewer.