Skip to content

Commit

Permalink
change from append to overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
kavon committed Feb 1, 2018
1 parent c3fb431 commit ca3267c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ $(BUILD_ROOT)/%.o: $(SRC_ROOT)/%.c $(HEADERS)

unified:
# roll together the headers. api.h needs to come first so we sort the headers.
cat $(sort $(HEADERS)) >> $(BUILD_ROOT)/statepoint.h
cat $(sort $(HEADERS)) > $(BUILD_ROOT)/statepoint.h
# make the C file
echo "#include \"statepoint.h\"" > $(BUILD_ROOT)/statepoint.c
sed -E -e "s:[[:space:]]*#include[[:space:]]+\"include/.+\":// include auto-removed:g" $(C_SRCS) >> $(BUILD_ROOT)/statepoint.c
# ensure that it compiles
$(CC) -c $(BUILD_ROOT)/statepoint.c -o $(BUILD_ROOT)/statepoint.o
tar cvf unified-source.tar $(BUILD_ROOT)/statepoint.c $(BUILD_ROOT)/statepoint.h

clean:
rm -f build/*
rm -f dist/*
rm -f unified-source.tar

0 comments on commit ca3267c

Please sign in to comment.