diff options
Diffstat (limited to 'astman')
-rwxr-xr-x | astman/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/astman/Makefile b/astman/Makefile new file mode 100755 index 000000000..f932ffb9f --- /dev/null +++ b/astman/Makefile @@ -0,0 +1,17 @@ + +TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; fi) +all: $(TARGET) + +install: + mkdir -p /usr/sbin + if [ "$(TARGET)" != "" ]; then \ + for x in $(TARGET); do \ + install -m 755 $$x /usr/sbin/astman; \ + done ; \ + fi + +clean: + rm -f *.o astman + +astman: astman.o + $(CC) -o astman astman.o -lnewt |