Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaigai committed Sep 2, 2023
1 parent 9cfcbcd commit b1a487b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ STROM_OBJS = main.o githash.o extra.o codegen.o misc.o executor.o \
pcie.o float2.o tinyint.o aggfuncs.o
GENERATED-HEADERS = gpu_devattrs.h githash.c

#
# Githash.c checker
#
GITHASH_CHECKS := $(shell grep -q \"$(PGSTROM_GITHASH)\" githash.c 2>/dev/null || rm -f githash.c)

#
# Source of NVIDIA GPU device code
#
Expand Down Expand Up @@ -86,7 +91,6 @@ gpu_devattrs.h: $(CUDA_IPATH)/cuda.h
-e 's| =.*$$|, NULL)|g' > $@

githash.c:
grep -q \"$(PGSTROM_GITHASH)\" githash.c 2>/dev/null || \
echo "const char *pgstrom_githash_cstring = \"$(PGSTROM_GITHASH)\";" > githash.c

#
Expand Down

0 comments on commit b1a487b

Please sign in to comment.