Code Snippets Makefile

Short texts Makefile 🧑‍💻 Code snippets Makefile ✍️ Reading lists Makefile 👀

dired-do-gist

### Makefile for dotfiles to restore Debian Linux # author Minoru Yamada. 2021.10.11 ## ===================================================================== ## Manual setting before executing make ## 1. Boot from Live-USB to install debian ## Download iso image file from https://www.debian.org/CD/live/ ## Create a Live USB stick, ## https://www.archlinux.site/2018/03/linuxisoubuntulive-usb.html ## 2. Register username to sudoers ## Log in as root […]

GTK4 example

CFLAGS = -Wall -g `pkg-config –cflags gtk4` LDFLAGS = `pkg-config –libs gtk4` all: main.c $(CC) -o main main.c $(CFLAGS) $(LDFLAGS) clean: rm -f *~ rm -f *.o rm -f main

make proto

.PHONY: proto proto: @ if ! which protoc > /dev/null; then \ echo “error: protoc not installed” >&2; \ exit 1; \ fi @ if ! which protoc-gen-go > /dev/null; then \ echo “error: protoc-gen-go not installed” >&2; \ exit 1; \ fi @ if ! which protoc-gen-go-grpc > /dev/null; then \ echo “error: protoc-gen-go-grpc […]

Atr-5-icc2

MAIN=main.c BINARY=atr all: gcc -g $(MAIN) -o $(BINARY) run: ./$(BINARY) zip: @zip -r $(BINARY).zip *

example zmq + protobuf

all: g++ -o main main.cpp message.pb.cc `pkg-config –cflags –libs libzmq protobuf` g++ -o other other.cpp message.pb.cc `pkg-config –cflags –libs libzmq protobuf` prot: protoc *.proto –cpp_out=”.”