Browse Source

better makefile install, added uninstall option

master
Sadoon AlBader 2 months ago
parent
commit
b60ae5efbb
  1. 5
      Makefile

5
Makefile

@ -2,6 +2,7 @@ CC=gcc
CARGS=-Wall -Werror -O2
OBJ=vcd
SRC=vcd.c
PREFIX=/usr/local/
all: comp
comp:
@ -9,4 +10,6 @@ comp:
clean:
rm -rf ./vcd
install:
cp ./$(OBJ) /usr/bin/$(OBJ)
cp ./$(OBJ) $(PREFIX)/bin/
uninstall:
rm $(PREFIX)/bin/$(OBJ)

Loading…
Cancel
Save