Skip to content

Commit

Permalink
Cleanly installs and uninstalls to a virgin directory.
Browse files Browse the repository at this point in the history
Moved rmc_list_template.h to the list of installed headerfiles since everybody uses it.
  • Loading branch information
Magnus Feuer committed Mar 8, 2019
1 parent 062f5f7 commit 0943d7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ TEST_OBJ = sub_interval_test.o \

INST_HDR=reliable_multicast.h \
rmc_list.h \
rmc_list_template.h \
rmc_log.h

HDR= ${INST_HDR} \
rmc_list_template.h \
rmc_proto_test_common.h \
rmc_pub.h \
rmc_sub.h \
Expand All @@ -50,6 +50,8 @@ LIB_SO_TARGET=librmc.so
TEST_TARGET=rmc_test
WIRESHARK_TARGET=rmc_wireshark_plugin.so

DESTDIR ?= /usr/local

CFLAGS = -ggdb -fpic -Wall
.PHONY: all clean etags print_obj install uninstall

Expand All @@ -73,6 +75,7 @@ $(LIB_SO_TARGET): $(OBJ)
install: all
install -d ${DESTDIR}/lib
install -d ${DESTDIR}/bin
install -d ${DESTDIR}/include
install -m 0644 ${LIB_TARGET} ${DESTDIR}/lib
install -m 0644 ${LIB_SO_TARGET} ${DESTDIR}/lib
install -m 0755 ${TEST_TARGET} ${DESTDIR}/bin
Expand Down

0 comments on commit 0943d7c

Please sign in to comment.