Skip to content

Instantly share code, notes, and snippets.

@dadencukillia
Created September 27, 2024 09:11
Show Gist options
  • Save dadencukillia/d0fef303d0bd572a25f363c31a531216 to your computer and use it in GitHub Desktop.
Save dadencukillia/d0fef303d0bd572a25f363c31a531216 to your computer and use it in GitHub Desktop.
Simple Makefile for launching C++ file
.DEFAULT_GOAL := all
.SILENT: clear build
clear:
rm -f ./exec
build:
g++ -Wall -o exec main.cpp
run: build
./exec
all: run clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment