summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-03 11:55:16 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-03 11:55:16 +0000
commit1906d432733d5cd7940a5ad171906fe7b658df83 (patch)
tree094b5c46f0d54fda117db8673c54585357ab1283 /src
parentAdd debian/ for initial Debian package (diff)
make distclean is now always possible
Diffstat (limited to 'src')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 9b95da3..42f1aff 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -32,7 +32,9 @@
## along with uAnytun. If not, see <http://www.gnu.org/licenses/>.
##
+ifneq ($(MAKECMDGOALS),distclean)
include include.mk
+endif
EXECUTABLE := uanytun
@@ -67,7 +69,9 @@ all: $(EXECUTABLE)
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$; echo '(re)building $@'
+ifneq ($(MAKECMDGOALS),distclean)
-include $(SRC:%.c=%.d)
+endif
uanytun: $(OBJ)
$(CC) $(OBJ) -o $@ $(LDFLAGS)
@@ -91,7 +95,7 @@ clean:
manpage:
$(MAKE) --directory="../doc/" manpage
-install: install-bin install-etc install-man add-user
+install: all install-bin install-etc install-man add-user
install-bin: $(EXECUTABLE)
mkdir -p $(DESTDIR)$(SBINDIR)