Changeset 128 in Main for trunk/Makefile
- Timestamp:
- Sep 23, 2024, 7:19:19 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r121 r128 11 11 .PHONY: all format clean ./Server ./Common ./Module ./Manpage get-version 12 12 13 all: ./Server ./Module ./Manpage 13 all: ./Server ./Module ./Manpage ./Tool/genconf ./Tool/itworks 14 14 15 ./ Server/option: ./Server/option.c16 cc -o $@ ./ Server/option.c15 ./Tool/option: ./Tool/option.c 16 cc -o $@ ./Tool/option.c 17 17 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 ../`" 20 23 21 24 ./Module:: ./Common … … 28 31 $(MAKE) -C $@ $(FLAGS) 29 32 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 33 install: 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 33 38 cp ./Server/tewi $(PREFIX)/bin/ 34 39 cp ./Module/*.so $(PREFIX)/lib/tewi/ … … 46 51 $(MAKE) -C ./Common $(FLAGS) clean 47 52 $(MAKE) -C ./Manpage $(FLAGS) clean 48 rm -f ./ Server/option53 rm -f ./Tool/option ./Tool/genconf
Note:
See TracChangeset
for help on using the changeset viewer.