mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
3e3d28cc36
Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
21 lines
426 B
Diff
21 lines
426 B
Diff
diff --git a/Makefile b/Makefile
|
|
index 815c27e..1556807 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,4 +1,5 @@
|
|
CXX ?= clang
|
|
+out ?= /usr/local
|
|
|
|
all: pridecat
|
|
|
|
@@ -6,7 +7,8 @@ pridecat: main.cpp
|
|
$(CXX) main.cpp -o pridecat -std=c++11 -lstdc++ -Wall -Wextra -O3
|
|
|
|
install: pridecat
|
|
- cp pridecat /usr/local/bin/pridecat
|
|
+ mkdir -p ${out}/bin
|
|
+ cp pridecat ${out}/bin/pridecat
|
|
|
|
uninstall:
|
|
rm -f /usr/local/bin/pridecat
|