Skip to content

Commit

Permalink
support non-git build
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jul 5, 2024
1 parent 3d064f4 commit c6276ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ ASSRCS = $(SRCDIR)/asm.S $(SRCDIR)/int23.S $(SRCDIR)/int0.S $(SRCDIR)/mouse.S
OBJS = $(notdir $(SRCS:.c=.o)) $(notdir $(ASSRCS:.S=.o))
CMD = comcom32.exe
REVISIONID := $(shell git describe --dirty=+)
ifeq ($(REVISIONID),)
REVISIONID := Non-git_build
endif
C_OPT += -DREV_ID=\"$(REVISIONID)\"

.PHONY: all clean install uninstall
Expand Down
3 changes: 3 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ AS_OBJECTS = $(AS_SOURCES:.S=.o)
CMD = comcom64.exe
DBG = dosemu_$(CMD).dbg
REVISIONID := $(shell git describe --dirty=+)
ifeq ($(REVISIONID),)
REVISIONID := Non-git_build
endif
CFLAGS += -DREV_ID=\"$(REVISIONID)$(STEXT)\"

.PHONY: all clean install uninstall
Expand Down

0 comments on commit c6276ff

Please sign in to comment.