diff options
Diffstat (limited to 'vhook')
-rw-r--r-- | vhook/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vhook/Makefile b/vhook/Makefile index 898dbb4b6b..5e9023a6ef 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -15,18 +15,25 @@ endif all: $(HOOKS) +DEPS= $(HOOKS:.so=.d) + install: install -s -m 755 $(HOOKS) $(INSTDIR) imlib2.so: imlib2.o $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2 - rm $< %.so: %.o $(CC) -g -o $@ $(SHFLAGS) $< +%.d: %.c + @echo $@ \\ > $@ + $(CC) $(CFLAGS) -MM $< >> $@ + +-include $(DEPS) + %.html: %.texi texi2html -monolithic -number $< clean: - rm -f *.o *.so *~ + rm -f *.o *.d *.so *~ |