Skip to content
Snippets Groups Projects
Commit 53c85ed1 authored by Christian Mahlburg's avatar Christian Mahlburg
Browse files

add install task to Makefile

parent dddf19d2
Branches master
No related tags found
No related merge requests found
CC = gcc
CFLAGS = -I.
PROGNAME = hello
#CC = gcc
#CFLAGS = -I.
DEPS = hello.h
OBJ = main.o hello.o
OBJ = main.o hello.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
helloPAES: $(OBJ)
$(PROGNAME): $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
install: $(PROGNAME)
mkdir -p $(DESTDIR)$(PREFIX)
cp $< $(DESTDIR)$(PREFIX)/$(PROGNAME)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/$(PROGNAME)
clean:
rm *.o
rm helloPAES
rm $(PROGNAME)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment