Changeset 53 in Main for trunk


Ignore:
Timestamp:
Sep 18, 2024, 8:29:31 PM (2 months ago)
Author:
Nishi
Message:

add get-version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r44 r53  
    99FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
    1010
    11 .PHONY: all format clean ./Server ./Common ./Module ./Manpage
     11.PHONY: all format clean ./Server ./Common ./Module ./Manpage get-version
    1212
    1313all: ./Server ./Module ./Manpage
     
    3131        clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
    3232
     33get-version:
     34        @grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'
     35
    3336clean:
    3437        $(MAKE) -C ./Server $(FLAGS) clean
Note: See TracChangeset for help on using the changeset viewer.