Modified with install target to makefile and manpage.
This commit is contained in:
parent
37c8131ce1
commit
e7dd66117c
2 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -6,6 +6,7 @@ CXX=g++
|
||||||
CXXFLAGS=-Wall -Werror -O2
|
CXXFLAGS=-Wall -Werror -O2
|
||||||
CXXLIBS=-lcurl
|
CXXLIBS=-lcurl
|
||||||
TARGET=pastebincl
|
TARGET=pastebincl
|
||||||
|
MANPAGE=pastebincl.1.gz
|
||||||
OBJS=CurlPost.o func.o main.o ParameterRead.o ConfigRead.o
|
OBJS=CurlPost.o func.o main.o ParameterRead.o ConfigRead.o
|
||||||
|
|
||||||
all: inputdevcode checkdevcode $(TARGET)
|
all: inputdevcode checkdevcode $(TARGET)
|
||||||
|
@ -33,6 +34,10 @@ ConfigRead.o: ConfigRead.cpp
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@
|
$(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp $(TARGET) /usr/bin
|
||||||
|
cp $(MANPAGE) /usr/share/man/man1/
|
||||||
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
BIN
pastebincl.1.gz
Normal file
BIN
pastebincl.1.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue