Skip to content

Commit

Permalink
I thought I undid the release-id.h change
Browse files Browse the repository at this point in the history
  • Loading branch information
20kdc committed Jun 27, 2022
1 parent 46e8280 commit 9947907
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
*.exe
*.dll
release.zip
release-id.h
release-id.txt

10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,15 @@ COMPILE_FLAGS_DLL ?= -Os -flto -static-libgcc -Wno-multichar -shared
COMPILE_FLAGS_EXE ?= -Os -flto -static-libgcc -Wno-multichar
COMPILE_FLAGS_GUI ?= -Os -flto -static-libgcc -Wno-multichar -mwindows

INTERMEDIATES :=
INTERMEDIATES := release-id.txt

all:

rel: COPYING.txt README.md
# note the manual regeneration of this!
echo "#define RELEASE_ID `date +%s`LL" > release-id.h
echo `date +%s` > release-id.txt
rm -f release.zip
zip release.zip $^
zip release.zip release-id.h

release-id.h:
echo "#define RELEASE_ID `date +%s`LL" > release-id.h
zip release.zip release-id.txt

include colour-depth-fix/index.mk
include caosproxy/index.mk
Expand Down
4 changes: 2 additions & 2 deletions caosproxy/w32/index.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ INTERMEDIATES += caosproxy/caosprox.exe caosproxy/cpxinvrt.exe caosproxy/w32/cao
CAOSPROX_BODY := caosproxy/w32/cpxservg.c caosproxy/w32/cpxservi.c caosproxy/w32/caospres.o
CPXINVRT_BODY := caosproxy/w32/cpxinvrt.c caosproxy/w32/caospres.o

caosproxy/caosprox.exe: $(CAOSPROX_BODY) caosproxy/w32/libcpx.h release-id.h
caosproxy/caosprox.exe: $(CAOSPROX_BODY) caosproxy/w32/libcpx.h
$(COMPILER) $(COMPILE_FLAGS_GUI) $(CAOSPROX_BODY) -o $@ -lws2_32
$(STRIP) $@

caosproxy/w32/caospres.o: caosproxy/w32/caospres.rc caosproxy/w32/caosprox.ico
$(WINDRES) caosproxy/w32/caospres.rc caosproxy/w32/caospres.o

caosproxy/cpxinvrt.exe: $(CPXINVRT_BODY) caosproxy/w32/libcpx.h release-id.h
caosproxy/cpxinvrt.exe: $(CPXINVRT_BODY) caosproxy/w32/libcpx.h
$(COMPILER) $(COMPILE_FLAGS_EXE) $(CPXINVRT_BODY) -o $@ -lws2_32 -lshlwapi
$(STRIP) $@

0 comments on commit 9947907

Please sign in to comment.