@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
- cp -pr $$/$$file $(distdir)/$$file; \
+ cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
# Files which are generated by perl scripts
$(srcdir)/dummies.h $(srcdir)/dummies.cpp: $(srcdir)/dummies.pl
- cd $(srcdir) && perl dummies.pl
+ cd $(srcdir) && perl -w dummies.pl
# Force build of headers before compilation
$(srcdir)/ginaccint.bin.cpp: $(srcdir)/dummies.h
-# Force make clean to call Makecint's own Makefile
+# Force targets clean and distclean to call Makecint's own Makefile
makecint_clean:
(if [ -f Makefile.makecint ]; then $(MAKE) -f Makefile.makecint clean; fi)
+
clean: makecint_clean
+ -rm -f libginac.*
+
+distclean: makecint_clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.