mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:53:31 +03:00
improve usability with UNIX-like shells or a DOS command interpreters
This commit is contained in:
parent
0cc8184057
commit
169e94d68b
3 changed files with 74 additions and 21 deletions
|
|
@ -39,14 +39,6 @@ CFLAGS += -DUSE_ENVIRONMENT
|
|||
PROGRAM = curl.exe
|
||||
OBJECTS += $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
|
||||
|
||||
ifneq ($(findstring COMMAND.COM,$(SHELL)),COMMAND.COM)
|
||||
ifneq ($(findstring CMD.EXE,$(SHELL)),CMD.EXE)
|
||||
ifneq ($(findstring 4DOS.COM,$(SHELL)),4DOS.COM)
|
||||
IS_UNIX_SHELL = 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
all: $(OBJ_DIR) config.h $(PROGRAM)
|
||||
@echo Welcome to cURL
|
||||
|
||||
|
|
@ -67,11 +59,27 @@ hugehelp.c: ../docs/MANUAL ../docs/curl.1 mkhelp.pl
|
|||
groff -Tascii -man ../docs/curl.1 | \
|
||||
perl -w mkhelp.pl ../docs/MANUAL > $@
|
||||
|
||||
clean:
|
||||
- rm -f $(OBJECTS) config.h
|
||||
# clean generated files
|
||||
#
|
||||
genclean:
|
||||
- $(DELETE) config.h
|
||||
- $(DELETE) hugehelp.c
|
||||
|
||||
# clean object files and subdir
|
||||
#
|
||||
objclean: genclean
|
||||
- $(DELETE) $(OBJ_DIR)$(DS)*.o
|
||||
- $(RMDIR) $(OBJ_DIR)
|
||||
|
||||
# clean without removing built program
|
||||
#
|
||||
clean: objclean
|
||||
- $(DELETE) depend.dj
|
||||
|
||||
# clean everything
|
||||
#
|
||||
realclean vclean: clean
|
||||
- rm -f $(PROGRAM) hugehelp.c depend.dj
|
||||
- $(DELETE) $(PROGRAM)
|
||||
|
||||
-include depend.dj
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue