Commit c052983d authored by Ankit Pati's avatar Ankit Pati

do not use hardcoded executable name

parent 969d3080
......@@ -13,7 +13,7 @@ $(EXECUTABLE): $(OBJECTS)
@echo Linking...
$(CC) $(OBJECTS) -o $@
strip $(EXECUTABLE)
chmod 755 rpg
chmod 755 $(EXECUTABLE)
.c.o:
@echo Compiling...
......@@ -34,10 +34,10 @@ install:
@echo Installing...
ifeq ($(shell id -u), 0)
mkdir -p /usr/bin/
cp rpg /usr/bin/
cp $(EXECUTABLE) /usr/bin/
else
mkdir -p ~/bin/
cp rpg ~/bin/
cp $(EXECUTABLE) ~/bin/
endif
# end of Makefile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment