mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	src: Update bees-version.c more often
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -11,11 +11,13 @@ LIBS = -lcrucible -lpthread
 | 
				
			|||||||
LDFLAGS = -L../lib -Wl,-rpath=$(shell realpath ../lib)
 | 
					LDFLAGS = -L../lib -Wl,-rpath=$(shell realpath ../lib)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
depends.mk: Makefile *.cc
 | 
					depends.mk: Makefile *.cc
 | 
				
			||||||
	echo "const char *BEES_VERSION = \"$(shell git describe --always --dirty || echo UNKNOWN)\";" > bees-version.new.c
 | 
					 | 
				
			||||||
	mv -f bees-version.new.c bees-version.c
 | 
					 | 
				
			||||||
	for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done > depends.mk.new
 | 
						for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done > depends.mk.new
 | 
				
			||||||
	mv -fv depends.mk.new depends.mk
 | 
						mv -fv depends.mk.new depends.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bees-version.c: Makefile *.cc *.h
 | 
				
			||||||
 | 
						echo "const char *BEES_VERSION = \"$(shell git describe --always --dirty || echo UNKNOWN)\";" > bees-version.new.c
 | 
				
			||||||
 | 
						mv -f bees-version.new.c bees-version.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-include depends.mk
 | 
					-include depends.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%.o: %.cc %.h
 | 
					%.o: %.cc %.h
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user