CC = g++ LIBS = -lmodplug TARGET = modplugplay all: $(CC) modplugplay.c -o $(TARGET) $(LIBS) test: ./$(TARGET) data/* clean: rm $(TARGET) install: install -m 755 $(TARGET) /usr/bin/ install -m 644 modplugplay.1 /usr/share/man/man1/ uninstall: rm /usr/bin/$(TARGET) rm /usr/share/man/man1/modplugplay.1*