summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 8771522ee..aa2303268 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -31,6 +31,8 @@ MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
all: services
+distclean: clean spotless
+
services: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS)
@@ -76,9 +78,13 @@ modules: DUMMY
(cd modules ; ./configure ; ${MAKE} ${MAKEARGS} all)
clean:
+ @touch modules/Makefile.inc # Horribly ugly...
(cd modules ; ${MAKE} ${MAKEARGS} clean)
rm -f *.o services a.out
+spotless: clean
+ (cd modules ; ${MAKE} ${MAKEARGS} distclean)
+
install: services
test -d ${BINDEST} || mkdir ${BINDEST}
$(INSTALL) services $(BINDEST)/services