Skip to content

Commit

Permalink
fix: checkmake pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmaestro committed Nov 19, 2024
1 parent 882627b commit b98e787
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
8 changes: 8 additions & 0 deletions examples/configure_modify_input_source/simple_lib/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
all: simple

.PHONY: all

simple: $(OUTPUT)

.PHONY: simple

$(OUTPUT): ./src/simple.c
$(CC) $(CPPFLAGS) -o $(OBJECT) -c ./src/simple.c -I./include -I.
$(AR) $(LDFLAGS)
Expand All @@ -9,3 +15,5 @@ install: $(OUTPUT)
mkdir -p simple/lib
cp $(OUTPUT) ./simple/lib/$(OUTPUT)
cp -r ./include ./simple

.PHONY: clean test
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
all: simple

.PHONY: all

simple: $(OUTPUT)

.PHONY: simple

$(OUTPUT): ./src/simple.c
$(CC) $(CPPFLAGS) -o $(OBJECT) -c ./src/simple.c -I./include -I.
$(AR) $(LDFLAGS)
Expand All @@ -9,3 +15,5 @@ install:
mkdir -p simple/lib
cp -p $(OUTPUT) ./simple/lib/$(OUTPUT)
cp -rp ./include ./simple

.PHONY: clean test
8 changes: 6 additions & 2 deletions examples/make_simple/code/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BUILD_DIR=build-out
BUILD_DIR := build-out

UNAME:=$(shell uname)
UNAME := $(shell uname)

ifneq (,$(findstring NT, $(UNAME)))
# If Windows
Expand All @@ -15,8 +15,12 @@ default all $(BUILD_DIR)/lib/liba.a: liba.cpp liba.h
$(CXX_WRAPPER) $(CXXFLAGS) -o $(BUILD_DIR)/lib/liba.o -c liba.cpp
ar rcs $(BUILD_DIR)/lib/liba.a $(BUILD_DIR)/lib/liba.o

.PHONY: all

install: $(BUILD_DIR)/lib/liba.a
mkdir -p $(PREFIX)/lib $(PREFIX)/include $(PREFIX)/share
cp -rpv $(BUILD_DIR)/lib $(PREFIX)
cp -p liba.h $(PREFIX)/include
cp $(README_DIR)/README.md $(PREFIX)/share/

.PHONY: clean test

0 comments on commit b98e787

Please sign in to comment.