fileinfo/Makefile

38 lines
571 B
Makefile
Raw Permalink Normal View History

2024-08-22 02:42:10 +05:30
# Makefile
# Compiler
CXX = g++
# Compiler flags
CXXFLAGS = -lmagic
# Output file
OUTPUT = fileinfo
# Source file
SRC = main.cpp
# Rule to compile the program
$(OUTPUT): $(SRC)
$(CXX) $(SRC) $(CXXFLAGS) -o $(OUTPUT)
2024-08-23 22:40:28 +05:30
nomime: $(SRC)
2024-08-23 22:46:06 +05:30
$(CXX) $(SRC) -o $(OUTPUT) -D NO_MIME
2024-08-23 22:40:28 +05:30
2024-10-16 21:16:18 +05:30
noemojis: $(SRC)
$(CXX) $(SRC) $(CXXFLAGS) -o $(OUTPUT) -D NO_EMOJIS
2024-08-22 02:44:35 +05:30
check: $(OUTPUT)
$(CXX) $(SRC) $(CXXFLAGS) -o $(OUTPUT)
2024-08-22 02:45:16 +05:30
rm -f $(OUTPUT)
2024-08-22 02:44:35 +05:30
2024-10-16 21:16:18 +05:30
install: $(OUTPUT)
cp $(OUTPUT) /usr/bin/
userinstall: $(OUTPUT)
cp $(OUTPUT) ~/.local/bin/
2024-08-22 02:42:10 +05:30
# Clean up generated files
clean:
rm -f $(OUTPUT)