1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.make.internal.core.makefile.gnu;
13
import org.eclipse.cdt.make.core.makefile.gnu.IDeleteOnErrorRule;
14
import org.eclipse.cdt.make.internal.core.makefile.Command;
15
import org.eclipse.cdt.make.internal.core.makefile.Directive;
16
import org.eclipse.cdt.make.internal.core.makefile.SpecialRule;
17
import org.eclipse.cdt.make.internal.core.makefile.Target;
21
* If `.DELETE_ON_ERROR' is mentioned as a target anywhere in the
22
* makefile, then `make' will delete the target of a rule if it has
23
* changed and its commands exit with a nonzero exit status, just as
24
* it does when it receives a signal.
26
public class DeleteOnErrorRule extends SpecialRule implements IDeleteOnErrorRule {
28
public DeleteOnErrorRule(Directive parent, String[] reqs) {
29
super(parent, new Target(GNUMakefileConstants.RULE_DELETE_ON_ERROR), reqs, new Command[0]);