Skip to content

Commit

Permalink
use PREFIX instead of DESTDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Sep 22, 2015
1 parent 403799e commit ab876ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ all: dirt

clean:
rm -f *.o *~ dirt dirt-analyse
all: dirt

dirt: $(OBJECTS) jack.o Makefile
$(CC) $(OBJECTS) jack.o $(CFLAGS) $(LDFLAGS) -o $@
Expand All @@ -31,5 +32,6 @@ test: test.c Makefile
$(CC) test.c -llo -o test

install: dirt
install -d $(DESTDIR)/bin/
install -m 0755 dirt $(DESTDIR)/bin/dirt
install -d $(PREFIX)/bin
install -m 0755 dirt $(PREFIX)/bin/dirt

0 comments on commit ab876ed

Please sign in to comment.