X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=blobdiff_plain;f=Makefile;h=1d47fa0c086e38569b66444877bd8235b8851503;hp=1d6f3ef5305f4a176c46f8b4567f00044e200d09;hb=HEAD;hpb=43d2fc7060b16923ffebf75230e79081206c4b74 diff --git a/Makefile b/Makefile index 1d6f3ef..1d47fa0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # Makefile -# Copyright (C) 2015 Michael Goehler +# Copyright (C) 2018 Michael Goehler # # This file is part of mdp. # @@ -20,9 +20,9 @@ UNAME_S := $(shell uname -s 2>/dev/null || echo not) -SOURCES = $(wildcard src/*.c) +SOURCES = $(sort $(wildcard src/*.c)) OBJECTS = $(SOURCES:.c=.o) -TARGET = mdp +TARGET = smdp DESTDIR = PREFIX ?= /usr/local @@ -62,9 +62,10 @@ install: install -d $(DESTDIR)$(PREFIX)/bin install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) install -d $(DESTDIR)$(PREFIX)/share/man/man1 - install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1 + install -m 644 smdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1 uninstall: - $(RM) $(DESTDIR)$(PREFIX)/$(TARGET) + $(RM) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + $(RM) $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1 .PHONY: all clean install src uninstall