Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Rework make file, fix 'make install'. #9

Merged
merged 3 commits into from
Sep 29, 2022
Merged

Rework make file, fix 'make install'. #9

merged 3 commits into from
Sep 29, 2022

Conversation

10maurycy10
Copy link
Contributor

General makefile fixes.

  • make install copies binary to ~/.local/bin
  • make clean wont fail if debug (or normal) binaries don't exist.

@h2337
Copy link
Owner

h2337 commented Sep 28, 2022

Thanks for your contribution!

Makefile Outdated
@@ -17,29 +17,30 @@ CFLAGS:=-std=gnu11 -I$(INCLUDES) $(shell pkg-config --libs --cflags cairo x11 xf
CFILES:=$(shell find $(SOURCES) -printf '%P ' -name '*.c')
OFILES:=$(patsubst %.c,$(BUILD)/%.o,$(CFILES))

.PHONY: install build debug clean mkdir
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove install, debug, clean, and mkdir from .PHONY?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

.DEFAULT_GOAL:=build

install: build
cd ./connmap/resources && unzip -n ipv4.csv.zip
cp -R ./connmap ~/.config/
cp connmap.elf ~/.local/bin/connmap
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind updating the instructions for running in README.md as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind updating the instructions for running in README.md as well?

Done

@h2337 h2337 merged commit 245756b into h2337:master Sep 29, 2022
h2337 added a commit that referenced this pull request Dec 18, 2024
Rework make file, fix 'make install'.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants