Merge pull request #274 from phl0/fixGitVersion
Fix case errors with GitVersion.h
This commit is contained in:
commit
24358357e8
7 changed files with 21 additions and 21 deletions
6
Makefile
6
Makefile
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,17 +15,17 @@ OBJECTS = \
|
||||||
|
|
||||||
all: MMDVMHost
|
all: MMDVMHost
|
||||||
|
|
||||||
MMDVMHost: gitversion.h $(OBJECTS)
|
MMDVMHost: GitVersion.h $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) MMDVMHost *.o *.d *.bak *~ gitversion.h
|
$(RM) MMDVMHost *.o *.d *.bak *~ GitVersion.h
|
||||||
|
|
||||||
# Export the current git version if the index file exists, else 000...
|
# Export the current git version if the index file exists, else 000...
|
||||||
gitversion.h:
|
GitVersion.h:
|
||||||
ifneq ("$(wildcard .git/index)","")
|
ifneq ("$(wildcard .git/index)","")
|
||||||
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue