big makefile cleanup

This commit is contained in:
Vítor Santos Costa
2014-02-13 01:58:48 +00:00
parent 0420169bd0
commit 1d27d22ef0
46 changed files with 154 additions and 56 deletions

View File

@@ -78,6 +78,8 @@ all: $(TARGETS)
install: $(TARGETS)
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
install-examples:
clean: clean_subdirs
$(RM) $(TARGET)
@@ -86,6 +88,9 @@ clean_subdirs:
$(RM) $$i/*.o; \
done
distclean: clean
rm -f Makefile $(SOBJS)
##----------------------------------------------------------------------
.PHONY: all install clean $(SUBDIRS)

View File

@@ -147,3 +147,6 @@ install-examples:
for p in $(EXS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism; done
for p in $(EXS_JTREE); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/jtree; done
for p in $(EXS_NOISY_OR); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/noisy_or; done
distclean: clean
rm -f Makefile