ropipe/Makefile

30 lines
575 B
Makefile
Raw Normal View History

2021-10-11 11:24:13 +02:00
all:
echo "Compiling"
gcc -o ropipe ropipe.c
install:
ifeq (,$(wildcard ./ropipe))
make
endif
ifneq ($(shell id -u), 0)
@echo "You must be root to install"
else
mkdir -p /usr/local/share/man/man1/
echo "Copying man file"
cp ropipe.1 /usr/local/share/man/man1/ropipe.1
echo "Installing binary"
cp ropipe /usr/bin/ropipe
endif
uninstall:
ifneq ($(shell id -u), 0)
2022-10-04 15:48:54 +02:00
@echo "You must be root to uninstall"
2021-10-11 11:24:13 +02:00
else
echo "Removing man file"
rm -rf /usr/local/share/man/man1/ropipe.1
echo "Uninstalling binary"
rm -rf /usr/bin/ropipe
endif
2021-10-13 12:10:42 +02:00
update:
git pull
make install
2022-10-04 15:48:54 +02:00