aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4ae4647..160ea4a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,10 @@ OBJ = ${SRC:.c=.o}
BIN = ${SRC:.c=}
all: ${BIN}
+ifeq ($(SYSTEM_GETOPT),1)
+else
+ ${MAKE} -C getopt-ul
+endif
.c.o:
${CC} ${CFLAGS} -c -o $@ $<
@@ -15,12 +19,17 @@ ${BIN}: ${OBJ}
clean:
rm -f ${BIN} ${OBJ}
+ ${MAKE} -C getopt-ul clean
install: all
for bin in src/* ${BIN} contrib/*; do \
install -Dm755 $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; done
for man in man/*.1; do install -Dm644 $${man} ${DESTDIR}${MAN1}/$${man##*/}; done
for doc in doc/*; do install -Dm644 $${doc} ${DESTDIR}${CPTDOC}/$${doc##*/}; done
+ifeq ($(SYSTEM_GETOPT),1)
+else
+ ${MAKE} -C getopt-ul install
+endif
uninstall:
for bin in ${BIN} src/* contrib/*; do \