--- Makefile.orig 2010-11-30 05:58:10.000000000 -0600 +++ Makefile 2018-10-01 10:57:33.000000000 -0500 @@ -7,7 +7,7 @@ DESTDIR = PROG = desklaunch -PREFIX = $(DESTDIR)/usr +PREFIX = /usr RCFILE = .$(PROG)rc DEFINES = -DRCFILE=\"$(RCFILE)\" #-DDEBUG @@ -22,12 +22,17 @@ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -c $< -o $@ install: all - install $(PROG) $(PREFIX)/bin - install -d $(PREFIX)/share/$(PROG) + install -d $(DESTDIR)$(PREFIX)/bin + install $(PROG) $(DESTDIR)$(PREFIX)/bin + install -d $(DESTDIR)$(PREFIX)/share/$(PROG) + install debian/example_rc $(DESTDIR)$(PREFIX)/share/$(PROG) + install -d $(DESTDIR)$(PREFIX)/share/man/man1 + install debian/$(PROG).1 $(DESTDIR)$(PREFIX)/share/man/man1/ uninstall: rm -f $(PREFIX)/bin/$(PROG) rm -rf $(PREFIX)/share/$(PROG) + rm -f $(PREFIX)/share/man/man1/$(PROG).1 clean: rm -f $(PROG) $(OBJS)