diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -6,6 +6,7 @@ include config.mk BIN = timer SRC = ttym.c +HOOKS = hooks/on_start hooks/on_done hooks/on_quit OBJ = $(SRC:.c=.o) HDR = config.h @@ -31,7 +32,7 @@ distclean: clean dist: clean mkdir -p ttym-$(VERSION) cp -R LICENSE Makefile README.md config.def.h config.mk timer.1 ttym.c \ - patches ttym-$(VERSION) + patches hooks ttym-$(VERSION) tar -cf ttym-$(VERSION).tar ttym-$(VERSION) gzip ttym-$(VERSION).tar rm -rf ttym-$(VERSION) @@ -43,9 +44,19 @@ install: all mkdir -p $(DESTDIR)$(MANPREFIX)/man1 cp -f timer.1 $(DESTDIR)$(MANPREFIX)/man1/timer.1 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/timer.1 + mkdir -p $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks + cp -f $(HOOKS) $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks + chmod 755 $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks/on_start + chmod 755 $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks/on_done + chmod 755 $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks/on_quit uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) rm -f $(DESTDIR)$(MANPREFIX)/man1/timer.1 + rm -f $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks/on_start + rm -f $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks/on_done + rm -f $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks/on_quit + rmdir $(DESTDIR)$(PREFIX)/share/doc/ttym/hooks 2>/dev/null || true + rmdir $(DESTDIR)$(PREFIX)/share/doc/ttym 2>/dev/null || true .PHONY: all clean distclean dist install uninstall |
